:root {
  --colore-primario: #7a2423;
  --colore-secondario: #F7A001;
  --colore-primario_shop: #7a2423;
  --colore-secondario_shop: #F7A001;
  --colore_sfondo: #EDEFEA;
}

html {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  line-height: 1.2rem;
  /*interlinea*/
}

body {
  background-color: var(--colore_sfondo);
  color: #333;
  padding: 55px 10px 50px 10px;
  /* top right bottom left */
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

/*titolo pagina*/
.titolo-pagina {
  font-family: "Inter Tight", sans-serif;
  font-weight: 300;
  /* Light */
  font-size: 16pt;
  text-align: center;
  margin-top: 1.8rem;
  color: #000000;
  line-height: 1.4rem;
}

.titolo-pagina .in-evidenza {
  font-weight: 600;
  /* Semibold */
}

.titolo-pagina .sottotitolo {
  display: block;
  font-size: 14pt;
  font-style: italic;
  font-weight: 300;
}

/*box annunci*/
.box-annuncio-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 1rem;
  padding-bottom: 0rem;
  margin-top: 1.1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  min-height: 100px;
  z-index: 1;
}

.flag-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 26px;
  height: 26px;
  z-index: 3;
}

.flag-icon img {
  width: 100%;
  height: auto;
}

.box-annuncio {
  width: 100%;
  text-align: left;
  align-self: flex-start;
}

.box-annuncio h4 {
  margin-bottom: 0.25rem;
}

.box-annuncio p {
  margin-top: 0;
}


/*paginazione*/
#paginazione {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 4rem;
  cursor: pointer;
}

#paginazione button.btn-utility {
  border: 2px solid var(--colore-secondario);
  background-color: var(--colore_sfondo);
  color: var(--colore-secondario);
  font-family: 'Inter Tight', sans-serif;
  font-size: 1rem;
  font-weight: 600
}

#paginazione button.btn-utility:disabled {
  background-color: var(--colore-secondario);
  color: #fff;
}


/* Button installazione app */
#installToast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--colore-secondario);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  align-items: center;
  text-align: center;
  width: 80%;
  box-sizing: border-box;
}


#installToast button {
  background: white;
  color: var(--colore-primario);
  border: solid white;
  ;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.7rem;
  margin-right: 0.3rem;
}

#installToast .close {
  background: transparent;
  color: white;
  cursor: pointer;
}

/* Animazione Toast */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Success Toast */
.success-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  animation: slideIn 0.3s ease-out;
  opacity: 1;
  transition: opacity 0.3s;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Guide installazione iOS/Android custom */
.install-guide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeInOverlay 0.3s;
}

.install-guide-card {
  background: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: 20px 20px 0 0;
  padding: 2rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  animation: slideUpCard 0.3s ease-out;
  text-align: center;
  font-family: 'Inter Tight', sans-serif;
}

.install-guide-card h3 {
  margin-top: 0;
  color: #333;
}

.install-guide-card p {
  color: #555;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.install-guide-steps {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border-radius: 12px;
  display: flex;
  /* flex per centrare l'immagine se fosse un'icona font */
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.install-guide-btn {
  background: #007aff;
  /* iOS Blue */
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUpCard {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}