/* --- STILE PERSONALIZZATO --- */
.md-typeset *:not(pre)>code {
    color: var(--md-code-fg-color);
}

.js .md-typeset .tabbed-labels::before {
    background-color: var(--md-accent-fg-color)
}

.md-typeset table:not([class]) td {
    padding: .2em 1.25em;
}

.md-typeset__table {
    display: block;
}

.md-typeset table:not([class]) {
    background: none;
    border-radius: .4rem;
    display: table;
}

.md-typeset__table td:first-child {
    width: 8rem;
    white-space: nowrap;
}

.md-typeset table:not([class]) th {
    border-bottom: .1rem solid var(--md-accent-fg-color)
}

.md-header__title {
    font-size: 1.1rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 2.4rem;
}

@media screen and (max-width: 76.2344em) {
  .md-nav .md-nav__title[for=__drawer] .md-logo {
    height: 2.4rem;
    width: auto;
  }
}

/* --- BANNER IOS --- */
.ios-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  padding: 15px;
  touch-action: none; 
  overscroll-behavior: contain;
}

.ios-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ios-modal-content {
  background-color: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  box-shadow: var(--md-shadow-z3); 
  border-radius: 14px;
  padding: 1.5rem;
  width: 100%;
  max-width: 340px;
  text-align: center;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.ios-modal-overlay.active .ios-modal-content {
  transform: scale(1) translateY(0);
}

.ios-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.2;
  color: var(--md-primary-fg-color);
}

.ios-intro-text {
  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 1.2rem;
}

.ios-instructions-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: left;
  margin-bottom: 1.5rem;
  background: var(--md-code-bg-color);
  padding: 0.5rem;
  border-radius: 10px;
}

.ios-instruction-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  line-height: 1.3;
}

.ios-step-number {
  background: var(--md-default-fg-color--lightest);
  color: var(--md-default-fg-color);
  font-weight: bold;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.ios-share-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 5px;
  border-radius: 6px;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  color: var(--md-primary-fg-color);
}

.ios-modal-btn {
  width: 100%;
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  background-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  border: none;
  transition: opacity 0.2s;
}

.ios-modal-btn:hover {
  opacity: 0.9;
}

/* --- PERSONALIZZAZIONI SINGOLE --- */
@keyframes heartbeat {
  0%, 40%, 80%, 100% {
    transform: scale(1);
  }
  20%, 60% {
    transform: scale(1.25);
  }
}
@keyframes rotate30 {
  0% {
    transform: rotate(0);
  }
  30% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.heartbeat {
  animation: heartbeat 1s infinite;
  color: #c70020;
}
.rotate30 {
	animation: rotate30 2s ease-in-out both infinite;
}

.opzionale {
  color: var(--md-default-fg-color--light);
}