@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

html, body {
  margin: 0;
  padding: 0;
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-style: normal;
}

* {
    box-sizing: border-box;
}

button, input {
  font: inherit;
}

/* LOGIN */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url("../assets//login.png");
    background-position: center;
    background-size: cover;

}

.login-page .loginFooter {
    max-width:80%;
    margin: 30px auto 0 auto;

}

.login-page .loginFooter img {
    width:100%;
}

.login-page .buttons{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:50%;
    text-align:center;
    margin: 0 auto;
}

.login-container {
  max-height:100vh;
  width: 100%;
  max-width: 390px;
  padding: 24px 22px 28px;
  text-align: center;
}

.login-container .logo {
  width: 80%;
}

.password-recovery-container .logo {
  width: 72%;
}

.password-recovery-container .title {
  margin-top: 10px;
}

.title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.form {
  text-align: left;
}

  .form label {
    color: #ffffff;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
  }

  .form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: none;
    margin-bottom: 14px;
    background: #efefef;
  }

.forgot {
  text-align: center;
  color: #ffffff;
  font-size: 13px;
  margin: 6px 0 22px;
}

.btn-primary,
.btn-secondary {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: none;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: #009EE0;
  margin-bottom: 10px;
}

.btn-secondary {
  background: #7924A9;
}

/* REGISTRAZIONE */
.register-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: linear-gradient( 180deg, rgba(244, 212, 132, 0.55) 0%, rgba(244, 212, 132, 0.35) 100% ), linear-gradient(180deg, #f6f1e7 0%, #f1ead8 100%);
}

.register-shell {
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap:1.5rem;
  background: radial-gradient(circle at 20% 88%, rgba(116, 152, 199, 0.18) 0, rgba(116, 152, 199, 0.18) 40px, transparent 42px), linear-gradient(28deg, transparent 0 8%, rgba(228, 120, 56, 0.18) 8% 18%, transparent 18% 100%), linear-gradient(-24deg, transparent 0 12%, rgba(228, 120, 56, 0.12) 12% 22%, transparent 22% 100%), linear-gradient(180deg, #f4efe3 0%, #efe7d3 100%);
  padding: 22px 14px 26px;
}

.register-shell .logoWrapper {
    width: 100%;
    max-height: 15vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.register-shell .logo {
    max-height: 100%;
    width: auto;
}

.register-card {
  background: rgba(247, 247, 247, 0.92);
  border-radius: 4px 4px 0 0;
  padding: 22px 14px 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.register-title {
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #111;
}

.register-subtitle {
  margin: 6px auto 18px;
  max-width: 250px;
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
  color: #333;
}

.register-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.register-form input {
  width: 100%;
  height: 34px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border: 1px solid #dddddd;
  border-radius: 12px;
  background: #f8f8f8;
  color: #222;
  outline: none;

}

  .register-form input:focus {
    border-color: #c9c9c9;
    background: #fff;
  }

.btn-register {
  display: block;
  width: 84px;
  margin: 14px auto 0;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: #7924A9;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.register-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  width: 100%;
}

.activation-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px 0;
  text-align: center;
}

.activation-text {
  max-width: 210px;
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.35;
  color: #444;
}

.btn-activate {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 110px;
  padding: 9px 14px;
  border: none;
  border-radius: 999px;
  background: #7924A9;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.star-badge {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FDD21F;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

/* PAGINA DATI GENITORE */
.parent-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, #f2f2f2 0%, #ece9df 100%);
}

.parent-shell {
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  padding: 22px 14px 28px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(96deg, transparent 0 44%, rgba(230, 219, 184, 0.55) 44% 56%, transparent 56% 100%), linear-gradient(28deg, transparent 0 72%, rgba(230, 219, 184, 0.45) 72% 100%), linear-gradient(-34deg, transparent 0 74%, rgba(230, 219, 184, 0.40) 74% 100%), radial-gradient(circle at 75% 88%, rgba(230, 219, 184, 0.50) 0 180px, transparent 180px), linear-gradient(180deg, #efefef 0%, #ece8db 100%);
}

.parent-header {
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.parent-title {
  margin: 0 0 8px;
  font-size: 31px;
  line-height: 1.1;
  font-weight: 800;
  color: #111;
}

.parent-subtitle {
  margin: 0 auto;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.35;
  color: #222;
}

.parent-card {
  position: relative;
  z-index: 2;
  background: rgba(248, 248, 248, 0.92);
  border-radius: 14px;
  padding: 20px 18px 22px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

.parent-form label {
  display: block;
  margin: 12px 0 6px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  color: #111;
}

.parent-form input {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  border: 2px solid #d5d5d5;
  border-radius: 16px;
  background: #f5f5f5;
  color: #222;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

  .parent-form input:focus {
    background: #fff;
    border-color: #c7c7c7;
  }

.btn-parent-submit {
  display: block;
  min-width: 170px;
  margin: 22px auto 0;
  padding: 12px 20px;
  border: none;
  border-radius: 16px;
  background: #7924A9;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}

.btn-delete-submitrequest {
    display: block;
    min-width: 170px;
    margin: 6px auto 0;
    padding: 12px 20px;
    border: none;
    border-radius: 16px;
    background: #7924A9;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}

.parent-steps {
    position: relative;
    z-index: 2;
    padding: 26px 6px 0;
}

.parent-steps-title {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
  color: #111;
}

.parent-steps-list {
  margin: 0;
  padding-left: 32px;
  color: #111;
}

  .parent-steps-list li {
    margin-bottom: 10px;
    padding-left: 2px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
  }

    .parent-steps-list li::marker {
      font-weight: 800;
    }

.parent-illustration {
  position: relative;
  z-index: 1;
  height: 230px;
  margin-top: 16px;
  pointer-events: none;
  opacity: 0.9;
}

  .parent-illustration::before {
    content: "";
    position: absolute;
    left: 24px;
    bottom: 0;
    width: 160px;
    height: 170px;
    border: 8px solid rgba(173, 187, 214, 0.75);
    border-radius: 28px 28px 42px 42px;
    transform: rotate(-10deg);
    border-top-left-radius: 46px;
    background: rgba(228, 205, 205, 0.35);
    box-sizing: border-box;
  }

.parent-illustration::after {
    content: "";
    position: absolute;
    left: 52px;
    bottom: 118px;
    width: 42px;
    height: 82px;
    border: 8px solid rgba(173, 187, 214, 0.75);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    transform: rotate(-8deg);
    box-sizing: border-box;
  }

/* ATTIVITA */
.attivita-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-image: url("/data/hom.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.attivita-shell {
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  padding: 28px 10px 26px;
}

.attivita-header {
  text-align: center;
  margin: 16px 0 18px;
}

.attivita-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 900;
  color: #0c0c0c;
}

.attivita-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: #202020;
}

.attivita-categorie {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-left: -10px;
  margin-right: -10px;
}

.attivita-categoria {
  --join-x: 104px;
  --join-notch: 16px;
  width: 100%;
  min-height: 74px;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  text-align: left;
  position: relative;
  overflow: visible;
  isolation: isolate;
  cursor: pointer;
}

.attivita-categoria::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--categoria-color);
  z-index: 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M10 0H80Q83 0 85 3L95 17Q96.5 20 95 23L85 37Q83 40 80 40H10Q0 40 0 30V10Q0 0 10 0Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M10 0H80Q83 0 85 3L95 17Q96.5 20 95 23L85 37Q83 40 80 40H10Q0 40 0 30V10Q0 0 10 0Z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100% 100%;
}

.attivita-categoria::before {
  content: none;
}

.attivita-categoria-overlay {
  position: absolute;
  left: -8px;
  top: 50%;
  width: 96px;
  height: 96px;
  transform: translate(var(--img-x), calc(-50% + var(--img-y))) scale(var(--img-scale));
  transform-origin: center center;
  object-fit: contain;
  opacity: 1;
  z-index: 2;
  pointer-events: none;
}

.attivita-categoria-text {
  position: relative;
  z-index: 3;
  margin-left: 30vw;
  margin-right: 24px;
  padding: 8px 0;
  display: block;
  max-width: 180px;
  color: #fff;
  font-size: 17px;
  line-height: 1.12;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: break-word;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.activityCard{
    margin-top:1rem;
    border-radius:15px;
    margin:1rem;
    position: relative;
    overflow: hidden;
}

.activityCard div.badge-wrapper {
    position: absolute;
    color:white;
    font-weight:bold;
}

.activityCardTypeLabel {
    margin-left: auto;
    font-size: 0.875em;
    white-space: nowrap;
}

.activityCard div.cardFooter{
    padding:0.2rem 0.4rem;
    color:white;
    border-radius: 0 0 10px 10px;
    display:flex;
    gap:0.5rem;
}

.cardFooter .text-muted{
    color:white !important;
}

.activityCard span.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 10px 0 10px 0;
}

.activityCard .activityCardTitleWrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 !important;
    color: white;
    font-weight: bold;
}

.activityCard .activityCardTitleBadge {
    display: block;
    width: 85%;
    max-width: 85%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activityCardBookingOverlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background-color: gray;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    pointer-events: none;
}

.activityCard div.small{
    display:flex;
    justify-content:space-between;
}

.contact-us-page{
    padding:1rem;
}

article.activityCard > div > img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.timebuttons {
    display: flex;
    height: 4vh;
    justify-content: space-evenly
}

.timebuttons button {
    background-color: #E6F6FC;
    border: 1px solid #B5E2F4;
    border-radius:15px;
    padding: 0.2rem 1rem;
    color:#009EE0;
    margin: 0 0.3rem 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.timebuttons button:hover:not(.active) {
    background-color: #D3EEF9;
}

.timebuttons button.active {
    background-color: #009EE0;
    border-color: #009EE0;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 158, 224, 0.35);
}

.timebuttons .calendarActivityIcon {
    width: 18px;
    height: 17px;
    display: block;
    filter: brightness(0) saturate(100%) invert(44%) sepia(90%) saturate(2010%) hue-rotate(169deg) brightness(95%) contrast(102%);
}

.timebuttons button.active .calendarActivityIcon {
    filter: brightness(0) invert(1);
}
.badge-wrapper{

}

.categoryHeader {
    display:flex;
    justify-content:space-evenly;
    padding: 0.5rem 0;
    align-items:center;
}

.categoryHeader label{
}

.categoryHeader select{
    width:70%;
    padding:0.5rem 1rem;
    border-radius:15px;
    background-color:transparent;
}

.credits-page{
    display:flex;
    flex-direction:column;
    height:100%;
    padding:1rem;
    gap:1rem;
    overflow-y:auto;
}

.credits-intro{
    margin:0;
    line-height:1.4;
}

.credits-entity{
    display:flex;
    flex-direction:column;
    gap:0.5rem;
}

.credits-entity p{
    margin:0;
    line-height:1.4;
}

.credits-entity-name{
    margin:0;
}

.credits-entity-link{
    word-break:break-all;
    text-decoration:underline;
}

.noActSorry{
    padding:2rem;
}

.loghiIst {
    max-width: 100%;
    margin-top: auto;
}

/* COMMON LAYOUT */
.app-common-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-common-layout__header {
  display: flex;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  padding: 16px 12px 8px;
}

.app-common-layout__logo-wrap {
  display: flex;
  justify-content: center;
}

.app-common-layout__logo {
  height: 42px;
  width: auto;
  display: block;
}

.app-common-layout__icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qrBtn{
    margin-left:auto;
}

.app-common-layout__icon {
    width: 22px;
    height: 22px;
    display: block;
}

.app-common-layout__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.user-qr-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(12, 16, 24, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 72px 12px 24px;
}

.user-qr-modal-panel {
    width: min(460px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.user-qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #e4e8ee;
}

.user-qr-modal-header h5 {
    margin: 0;
    font-size: 1rem;
}

.user-qr-modal-close {
    border: 0;
    background: transparent;
    font-weight: 600;
}

.user-qr-modal-body {
    padding: 20px 14px;
}

.user-qr-modal-placeholder {
    border: 1px solid #d1d9e3;
    border-radius: 20px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #56687a;
    background: #f3f6fa;
    text-align: center;
    padding: 12px;
}

.burger-dropdown-overlay {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    pointer-events: auto;
}

.burger-dropdown-panel {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(2px);
    border-top: 1px solid #dde5ef;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.burger-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #e4e8ee;
}

.burger-dropdown-header h5 {
    margin: 0;
    font-size: 1rem;
}

.burger-dropdown-close {
    border: 0;
    background: transparent;
    font-weight: 600;
}

.burger-dropdown-body {
    padding: 16px 14px;
}

.super-user-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(12, 16, 24, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 12px;
}

.super-user-modal-panel {
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.super-user-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #e4e8ee;
    flex-shrink: 0;
}

.super-user-modal-header h5 {
    margin: 0;
    font-size: 1rem;
}

.super-user-modal-close {
    border: 0;
    background: transparent;
    font-weight: 600;
}

.super-user-modal-body {
    padding: 20px 14px;
    overflow-y: auto;
    flex: 1;
}

.qr-camera {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.qr-camera__viewport {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.qr-camera__video {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: #000;
    object-fit: cover;
    display: block;
}

.qr-camera__switch {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(12, 16, 24, 0.6);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-camera__switch:hover {
    background: rgba(12, 16, 24, 0.8);
}

.qr-camera__viewfinder {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 65%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.55));
}

.qr-camera__viewfinder-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 3px solid #fff;
}

.qr-camera__viewfinder-corner--tl {
    top: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0;
    border-top-left-radius: 8px;
}

.qr-camera__viewfinder-corner--tr {
    top: 0;
    right: 0;
    border-left: 0;
    border-bottom: 0;
    border-top-right-radius: 8px;
}

.qr-camera__viewfinder-corner--bl {
    bottom: 0;
    left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom-left-radius: 8px;
}

.qr-camera__viewfinder-corner--br {
    bottom: 0;
    right: 0;
    border-left: 0;
    border-top: 0;
    border-bottom-right-radius: 8px;
}

.qr-camera__response {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: #f3f6fa;
    color: #2a3441;
    text-align: center;
    white-space: pre-wrap;
    word-break: break-word;
}

.qr-camera__response--error {
    background: #ffe9ec;
    color: #a02035;
}

.super-user-modal-response {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.super-user-modal-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.super-user-modal-buttons {
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid #009EE0;
    background: #fff;
    color: #009EE0;
    cursor: pointer;
    font-weight: 600;
}

.qr-camera__response--checkwrapper i{
    font-size:5rem;
    color:green;
    padding-bottom:1rem;
}

.qr-camera__response--tipo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.qr-camera__response--checkin {
    color: #1a7f37;
}

.qr-camera__response--checkout {
    color: #0969da;
}

.qr-camera__response--utente {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.qr-camera__response--ora {
    font-size: 0.9rem;
    color: #555;
}

.super-user-modal-buttons--active {
    background: #009EE0;
    color: #fff;
}

.super-user-modal-buttons:disabled,
.super-user-modal-close:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qr-modal-fade-top-enter-active,
.qr-modal-fade-top-leave-active {
    transition: opacity 220ms ease;
}

.qr-modal-fade-top-enter-from,
.qr-modal-fade-top-leave-to {
    opacity: 0;
}

.qr-modal-fade-top-enter-active .user-qr-modal-panel,
.qr-modal-fade-top-leave-active .user-qr-modal-panel,
.qr-modal-fade-top-enter-active .super-user-modal-panel,
.qr-modal-fade-top-leave-active .super-user-modal-panel {
    transition: transform 280ms ease, opacity 280ms ease;
}

.qr-modal-fade-top-enter-from .user-qr-modal-panel,
.qr-modal-fade-top-leave-to .user-qr-modal-panel,
.qr-modal-fade-top-enter-from .super-user-modal-panel,
.qr-modal-fade-top-leave-to .super-user-modal-panel {
    transform: translateY(-28px);
    opacity: 0;
}

.burger-dropdown-stretch-enter-active,
.burger-dropdown-stretch-leave-active {
    transition: opacity 190ms ease;
}

.burger-dropdown-stretch-enter-from,
.burger-dropdown-stretch-leave-to {
    opacity: 0;
}

.burger-dropdown-stretch-enter-active .burger-dropdown-panel,
.burger-dropdown-stretch-leave-active .burger-dropdown-panel {
    transition: height 820ms cubic-bezier(0.16, 1, 0.3, 1), opacity 520ms ease;
}

.burger-dropdown-stretch-enter-from .burger-dropdown-panel,
.burger-dropdown-stretch-leave-to .burger-dropdown-panel {
    height: 0;
    opacity: 0.85;
}

.burger-dropdown-stretch-enter-to .burger-dropdown-panel,
.burger-dropdown-stretch-leave-from .burger-dropdown-panel {
    height: 100%;
    opacity: 1;
}

.isGuestButton {
    position: fixed;
    bottom: 5vh;
    right: 5vw;
    background-color: #7924A9;
    border:0;
    color:white;
    padding: 0.5rem 1rem;
    border-radius:15px;
}

.isGuestButton img{
    position:absolute;
    top:0;
    left:0;
    transform: translate(-45%, -45%) scale(0.7);
}

.pwa-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.6rem;
    border: 2px solid #009EE0;
    border-radius: 999px;
    background: transparent;
    color: #009EE0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.pwa-refresh-btn:hover:not(:disabled) {
    background: #009EE0;
    color: #fff;
}

.pwa-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pwaloaderwrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.day-query-calendar table {
    border-collapse: collapse;
    border: none;
}

.day-query-calendar td,
.day-query-calendar th {
    border: none;
}

.day-query-calendar td > div {
    width: 100%;
    height: 100%;
    background-color: #E4F7FF;
    border-radius: 15px;
    padding: 0.5rem;
}

.day-query-calendar table {
    border-collapse: collapse;
    border-spacing: 0;
}

.day-query-calendar td,
.day-query-calendar th {
    border: 0 !important;
}

.day-query-calendar button{
    border:0;
    background-color:transparent;
}

.day-query-calendar .day-query-calendar__table td.dqc-day-cell {
    min-height: 64px;
}

.day-query-calendar .day-query-calendar__table td.dqc-day-cell > .dqc-day-cell-content {
    height: auto;
    min-height: 64px;
    box-sizing: border-box;
}

.day-query-calendar .day-query-calendar__table td.dqc-day-cell > .dqc-day-cell-content > .dqc-day-dots {
    max-width: 100%;
}

.eventInfoDisplay{
    padding: 1rem;
    padding-bottom: 3.5rem;
}


.eventInfoDisplay .eventInfoDisplayDetails {
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
}

.eventInfoDisplay .eventInfoDisplayDetails h5{
    font-size:1rem;
    margin: 0.3rem 0 1rem 0;
}

.eventInfoDisplay .eventTitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
}

.eventInfoDisplay .eventSummary {
    font-size: 0.88rem;
    font-style: italic;
    color: #557;
    line-height: 1.45;
    margin: 0 0 0.85rem 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e8e8e8;
}

.eventInfoDisplay .eventInfo {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.65;
    white-space: pre-line;
}

.òeventInfoDisplayDetails {
    display:flex;
    flex-direction:column;
}

div.imageWrapper {
    border-radius: 20px;
    overflow: hidden;
}

.eventInfoDisplay .imageWrapper img {
    width: 100%;
    min-height: 40vh;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    object-fit: fill;
}

.eventInfoDisplay .imageWrapper > div {
    width: 100%;
    min-height: 50vh;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.eventInfotime{
    display:flex;
    flex-direction:column;
    padding: 1rem;
}

.eventInfotime button{
    text-align:center;
    width:fit-content;
    margin: 1rem auto;
    border:0;
    padding:0.5rem 1rem;
    border-radius:15px;
    background-color:#009EE0;
    color:white;
}
.eventInfotime button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
.eventInfotime .prenotazione-error {
    margin: 0 auto;
    max-width: 85%;
    text-align: center;
    color: #b42318;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

.eventInfotime{
    margin-bottom:1rem;
}

.eventInfotime .giorno,
.eventInfotime .fasciaOraria,
.eventInfotime .aula
{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

span.timeValue, span.giorno {
    padding:0.5rem 1rem;
    margin: 0.5rem 0
}

.eventInfotime .timeValue{
    border:1px solid gray;
    font-size:0.75rem;
    border-radius:10px;
}

/* ── Occorrenze / attività ricorrente ─────────────────── */
.occorrenzeSection {
    margin-top: 0.25rem;
}

.occorrenzeHeader {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.occorrenzeTitle {
    font-size: 0.72rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.scheduleSummaryBox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eef7fb;
    border: 1px solid #c8e6f5;
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    margin-bottom: 0.9rem;
    font-size: 0.82rem;
}

.scheduleSummaryLabel {
    color: #666;
    font-weight: 500;
}

.scheduleSummaryValue {
    font-weight: 600;
    color: #333;
}

.occorrenzeTable {
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    overflow: hidden;
}

.occorrenzaRow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid #f0f0f0;
}

.occorrenzaRow:last-child {
    border-bottom: none;
}

.occorrenzaRow--header {
    background: #f5f5f5;
    padding: 0.35rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-wrap: nowrap;
}

.occorrenzaRow--disabilitata {
    background: #fafafa;
    color: #bbb;
}

.occorrenzaData {
    flex: 1;
    font-size: 0.8rem;
    min-width: 0;
}

.occorrenzaOrario {
    width: 5.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #444;
    flex-shrink: 0;
}

.occorrenzaRow--disabilitata .occorrenzaOrario {
    color: #ccc;
}

.occorrenzaPosti {
    width: 2.8rem;
    font-size: 0.8rem;
    text-align: right;
    flex-shrink: 0;
}

.occorrenzaAzione {
    width: 5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}

.occorrenzaStato {
    font-size: 0.72rem;
    color: #bbb;
    font-style: italic;
    text-align: right;
}

.occorrenzaStato--prenotato {
    color: #2e9e56;
    font-style: normal;
    font-weight: 600;
    font-size: 0.75rem;
}

.occorrenzeTable .prenotaButton--occorrenza {
    padding: 0.28rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 20px;
    margin: 0;
    width: auto;
    background-color: #009EE0;
    color: white;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.occorrenzeTable .prenotaButton--occorrenza:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.occorrenzaError {
    flex-basis: 100%;
    font-size: 0.73rem;
    color: #d32f2f;
    margin: 0.2rem 0 0;
    padding: 0;
    text-align: left;
}
.corsoEnrollmentBox {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.corsoEnrollmentStato {
    font-size: 0.85rem;
    text-align: center;
}
.occorrenzeBookingBox {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.9rem;
    background: #f7fbfd;
    border: 1px solid #c8e6f5;
    border-radius: 10px;
}

.occorrenzeSelect {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1px solid #c8c8c8;
    border-radius: 8px;
    font-size: 0.83rem;
    color: #333;
    background: white;
    appearance: auto;
}

.occorrenzeSelect:focus {
    outline: none;
    border-color: #009EE0;
    box-shadow: 0 0 0 2px rgba(0,158,224,0.15);
}

.occorrenzeNessunaPosto {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    font-style: italic;
}
/* ── fine occorrenze ──────────────────────────────────── */

.burger-dropdown-body p {
    margin:0;
}

.burger-dropdown-overlay .burger-dropdown-footer{
    display:flex;
    justify-content:space-between;
    padding:0.2rem 0.8rem;
    margin: auto 0 1rem 0;
    align-items:center;
}

span.logOutSpan {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.unlock-super-user-page {
    display:flex;
    flex-direction:column;

}

.unlock-super-user-page form,
.unlock-super-user-page form > div
{
    display:flex;
    flex-direction:column;
}

.unlock-super-user-page form > div{
    padding:1rem;
}

.unlock-super-user-page form > div button {
    border:0;
    background-color:transparent;

}

.unlock-super-user-page .input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.unlock-super-user-page .input-group input {
    flex: 1;
    min-width: 0;
}

.unlock-super-user-page .input-group button {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 0.75rem;
}

.unlock-super-user-page input{
    padding:0.2rem 0.8rem;
    border-radius:5px;
    border:1px solid gray;
}

.loginSuperUser {
    width: 45%;
    text-align: center;
    margin: 0 auto;
    border: 0;
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    background-color: #009EE0;
    color:white;
}

.text-muted{
    color:gray;
}

.user-info-page {
    padding:2rem;
}

.mie-prenotazioni-page {
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.mie-prenotazioni-title {
    margin: 0 0 0.8rem 0;
}

.mie-prenotazioni-empty {
    padding: 0.6rem 0.2rem;
}

.mie-prenotazioni-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #dbe7f0;
    border-radius: 14px;
    background: #ffffff;
}

.mie-prenotazioni-table {
    width: 100%;
    margin: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.mie-prenotazioni-table thead th {
    background: #eef7fd;
    color: #19597a;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 0.68rem 0.55rem;
    border-bottom: 1px solid #d7e9f5;
}

.mie-prenotazioni-table tbody td {
    font-size: 0.84rem;
    padding: 0.66rem 0.55rem;
    vertical-align: middle;
    border-top: 1px solid #eef3f7;
}

.mie-prenotazioni-table .col-attivita,
.mie-prenotazioni-table .col-categoria {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mie-prenotazioni-table .col-tipo {
    width: 80px;
}

.mie-prenotazioni-table .col-attivita {
    width: 28%;
}

.mie-prenotazioni-table .col-categoria {
    width: 18%;
}

.mie-prenotazioni-table .col-data {
    width: 90px;
    white-space: nowrap;
}

.mie-prenotazioni-table .col-orario {
    width: 96px;
    white-space: nowrap;
}

.mie-prenotazioni-table .col-aula {
    width: 18%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mie-prenotazioni-table .col-stato {
    width: 95px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mie-prenotazioni-page {
        padding: 0.8rem;
    }

    .mie-prenotazioni-table {
        min-width: 720px;
    }
}

.user-info-error {
    color: #b42318;
    margin: 0;
}

.user-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.user-info-title {
    margin: 0;
    font-size: 1rem;
}

.user-info-edit-button {
    border: 0;
    border-radius: 14px;
    padding: 10px 20px;
    color: #ffffff;
    background: #1496d4;
    cursor: pointer;
}

.user-info-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.user-info-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.user-info-value {
    background: #ececec;
    border-radius: 16px;
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 1rem;
}

.user-info-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.user-info-footer-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2f2f2f;
}

.string-qr-code {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.string-qr-code-error {
    color: #b42318;
}

.qr-rounded {
    background: #ffffff;
    padding: 12px;
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(20, 30, 40, 0.08);
    display: inline-flex;
    overflow: hidden;
}

.qr-rounded-image {
    display: block;
    border-radius: 16px;
}

/* ─── PWA INSTALL BANNER ────────────────────────────────────────────── */
.pwa-install-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    animation: pwa-install-slide-up 220ms ease-out;
}

@keyframes pwa-install-slide-up {
    from { transform: translateY(120%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.pwa-install-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex: 0 0 auto;
    object-fit: contain;
}

.pwa-install-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    font-size: 0.88rem;
    line-height: 1.25;
    min-width: 0;
}

.pwa-install-text strong {
    font-weight: 700;
    margin-bottom: 2px;
}

.pwa-install-text span {
    color: #555;
}

.pwa-install-ios-share {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    background-color: #1976d2;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3l4 4h-3v8h-2V7H8l4-4zm-7 13h2v3h10v-3h2v5H5v-5z' fill='black'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3l4 4h-3v8h-2V7H8l4-4zm-7 13h2v3h10v-3h2v5H5v-5z' fill='black'/></svg>") center/contain no-repeat;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.pwa-install-btn {
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.pwa-install-btn-primary {
    background: #1976d2;
    color: #ffffff;
}

.pwa-install-btn-primary:hover {
    background: #1565c0;
}

.pwa-install-btn-ghost {
    background: transparent;
    color: #555;
}

.pwa-install-btn-ghost:hover {
    color: #1a1a1a;
}

.infoEventoAnchors{
    display:flex;
}

.backTocategorieButton {
    position: fixed;
    bottom: 5vh;
    left: 5vw;
    border: 0;
    border-radius: 100%;
    background-color: #009EE0;
    padding: 0.7rem 0.9rem 0.9rem 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.backTocategorieButton img{
    filter:brightness(0) invert(1);
}

.back1History {
    border-radius: 100%;
    display: inline-flex;
    width: fit-content;
    justify-content: center;
    align-items: center;
    margin-left: 1.25rem;
    background-color: #E6F6FC;
    border: 1px solid #B5E2F4;
    padding:0.8rem;
}

.back1History img {
      filter: brightness(0) saturate(100%) invert(47%) sepia(97%) saturate(2468%) hue-rotate(167deg) brightness(96%) contrast(101%);
}

.categoryHeader select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
}

.categoryHeader select {
  border: 0.5px solid darkgray;
  border-radius: 999px;
}

.categoryHeader select:focus {
  outline: none;
  border-color: #000;
  box-shadow: none;
}

/* ─── PWA IOS INSTALL CAROUSEL ──────────────────────────────────────── */
.pwa-ios-overlay {
    position: fixed;
    inset: 0;
    z-index: 9100;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    animation: pwa-ios-fade-in 200ms ease-out;
}

@keyframes pwa-ios-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pwa-ios-sheet {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
    animation: pwa-ios-slide-up 280ms cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}

@keyframes pwa-ios-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.pwa-ios-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #ebebeb;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.pwa-ios-close:hover {
    background: #ddd;
}

.pwa-ios-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-right: 36px;
}

.pwa-ios-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: contain;
}

.pwa-ios-app-name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.pwa-ios-app-sub {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

/* Sliding track */
.pwa-ios-track-wrap {
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 16px;
}

.pwa-ios-track {
    display: flex;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-ios-step {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 20px 16px 12px;
    background: #f7f8fa;
    border-radius: 14px;
}

.pwa-ios-bubble {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.pwa-ios-bubble--options {
    background: #e8f0fe;
    color: #1967d2;
}

.pwa-ios-bubble--share {
    background: #e6f4ea;
    color: #1e8e3e;
}

.pwa-ios-bubble--add {
    background: #fce8e6;
    color: #c5221f;
}

.pwa-ios-step-count {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 6px;
}

.pwa-ios-step-title {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #111;
    line-height: 1.3;
}

.pwa-ios-step-desc {
    margin: 0;
    font-size: 0.84rem;
    color: #555;
    line-height: 1.4;
    max-width: 260px;
}

/* Dot indicators */
.pwa-ios-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.pwa-ios-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: #d0d5dd;
    padding: 0;
    cursor: pointer;
    transition: background 200ms, width 200ms;
}

.pwa-ios-dot.active {
    background: #1976d2;
    width: 22px;
    border-radius: 4px;
}

/* Navigation buttons */
.pwa-ios-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pwa-ios-nav-btn {
    flex: 1;
    max-width: 160px;
    padding: 11px 16px;
    border: 0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms, color 150ms;
}

.pwa-ios-nav-btn--back {
    background: #f0f0f0;
    color: #444;
}

.pwa-ios-nav-btn--back:hover {
    background: #e4e4e4;
}

.pwa-ios-nav-btn--next {
    background: #1976d2;
    color: #fff;
}

.pwa-ios-nav-btn--next:hover {
    background: #1565c0;
}

.pwa-ios-nav-btn--done {
    background: #1e8e3e;
    color: #fff;
    flex: 1;
    max-width: 200px;
}

.pwa-ios-nav-btn--done:hover {
    background: #1a7a36;
}

/* Toolbar hint – mockup barra Safari con share evidenziato */
.pwa-ios-toolbar-hint {
    margin-top: 14px;
    width: 100%;
}

.pwa-ios-toolbar-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #f2f2f7;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 1.2rem;
    color: #3c3c43;
}

.pwa-ios-toolbar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: background 150ms;
}

.pwa-ios-toolbar-icon--active {
    background: #d1e8ff;
    color: #1976d2;
    position: relative;
}

.pwa-ios-toolbar-icon--active::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 2px solid #1976d2;
    border-radius: 10px;
    animation: pwa-ios-pulse 1.4s ease-in-out infinite;
}

@keyframes pwa-ios-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(1.12); }
}

/* ─── SHARE SHEET MOCK (step 2) ─────────────────────────────────────── */
.pwa-ios-sm {
    width: 100%;
    background: #f2f2f7;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
}

/* Card arrotondata — contenitore di un gruppo di voci */
.pwa-ios-sm-group {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.pwa-ios-sm-group--dim {
    opacity: 0.4;
}

/* Singola riga */
.pwa-ios-sm-row {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
    min-height: 40px;
    gap: 10px;
}

.pwa-ios-sm-row--last,
.pwa-ios-sm-row:last-child {
    border-bottom: none;
}

/* Testo a sinistra */
.pwa-ios-sm-row-text {
    flex: 1;
    font-size: 0.82rem;
    color: #000000;
    line-height: 1.25;
}

/* Icona a destra */
.pwa-ios-sm-row-ico {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #3c3c43;
}

.pwa-ios-sm-row-ico--active {
    color: #007aff;
}

/* Riga evidenziata "Aggiungi alla schermata Home" */
.pwa-ios-sm-row--active {
    background: rgba(0, 122, 255, 0.1);
    position: relative;
}

.pwa-ios-sm-row--active::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1.5px solid #007aff;
    pointer-events: none;
    animation: pwa-ios-row-pulse 1.5s ease-in-out infinite;
}

@keyframes pwa-ios-row-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.pwa-ios-sm-row--active .pwa-ios-sm-row-text {
    color: #007aff;
}

/* ─── DARK MODE  (valori sistema iOS) ───────────────────────────────── */
@media (prefers-color-scheme: dark) {

    /* Banner non-iOS */
    .pwa-install-banner {
        background: #1c1c1e;
        color: #f5f5f7;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    }
    .pwa-install-text span  { color: rgba(235, 235, 245, 0.6); }
    .pwa-install-btn-ghost  { color: rgba(235, 235, 245, 0.6); }
    .pwa-install-btn-ghost:hover { color: #f5f5f7; }

    /* Overlay */
    .pwa-ios-overlay { background: rgba(0, 0, 0, 0.65); }

    /* Bottom sheet */
    .pwa-ios-sheet {
        background: #1c1c1e;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.55);
    }

    /* Chiudi */
    .pwa-ios-close {
        background: #3a3a3c;
        color: rgba(235, 235, 245, 0.8);
    }
    .pwa-ios-close:hover { background: #48484a; }

    /* Header */
    .pwa-ios-app-name { color: #ffffff; }
    .pwa-ios-app-sub  { color: rgba(235, 235, 245, 0.55); }

    /* Slide step */
    .pwa-ios-step         { background: #2c2c2e; }
    .pwa-ios-step-count   { color: rgba(235, 235, 245, 0.3); }
    .pwa-ios-step-title   { color: #ffffff; }
    .pwa-ios-step-desc    { color: rgba(235, 235, 245, 0.6); }

    /* Bolle icona step 1 */
    .pwa-ios-bubble--share {
        background: rgba(48, 209, 88, 0.15);
        color: #30d158;
    }

    /* Dots */
    .pwa-ios-dot        { background: rgba(235, 235, 245, 0.25); }
    .pwa-ios-dot.active { background: #0a84ff; }

    /* Pulsanti navigazione */
    .pwa-ios-nav-btn--back {
        background: #2c2c2e;
        color: rgba(235, 235, 245, 0.8);
    }
    .pwa-ios-nav-btn--back:hover  { background: #3a3a3c; }
    .pwa-ios-nav-btn--next        { background: #0a84ff; }
    .pwa-ios-nav-btn--next:hover  { background: #0070e0; }
    .pwa-ios-nav-btn--done        { background: #30d158; }
    .pwa-ios-nav-btn--done:hover  { background: #25b44a; }

    /* Toolbar hint (step 1) */
    .pwa-ios-toolbar-bar { background: #1c1c1e; }
    .pwa-ios-toolbar-icon { color: rgba(235, 235, 245, 0.55); }
    .pwa-ios-toolbar-icon--active {
        background: rgba(10, 132, 255, 0.2);
        color: #0a84ff;
    }
    .pwa-ios-toolbar-icon--active::after { border-color: #0a84ff; }

    /* ── Share sheet mock ── */
    .pwa-ios-sm { background: #1c1c1e; }

    .pwa-ios-sm-group { background: #2c2c2e; }

    .pwa-ios-sm-row { border-bottom-color: rgba(84, 84, 88, 0.65); }

    .pwa-ios-sm-row-text  { color: #ffffff; }
    .pwa-ios-sm-row-ico   { color: rgba(235, 235, 245, 0.7); }

    .pwa-ios-sm-row--active {
        background: rgba(10, 132, 255, 0.18);
    }
    .pwa-ios-sm-row--active::after { border-color: #0a84ff; }
    .pwa-ios-sm-row--active .pwa-ios-sm-row-text { color: #0a84ff; }
    .pwa-ios-sm-row-ico--active { color: #0a84ff; }
}
