/*
 Theme Name: MoiMoi
 Template: astra
 Text Domain: moimoi
*/

.ff-el-group.privacylabel label {
  color: inherit;
}
.moimoi-archive-posts-home h3 a {
  text-decoration: inherit !important;
}
.contact-expect li {
  list-style-type: none;
}

.moimoi-hero {
	background: radial-gradient(circle at center, var(--ast-global-color-6) 0%, var(--ast-global-color-5) 100%);
	position: relative;
	overflow: hidden;
}

.moimoi-hero b {
    color: var(--ast-global-color-1);
    font-weight: 700;
}

.moimoi-hero .hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding-top: 2rem;
}

.moimoi-hero.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
}

.moimoi-hero.hero h1 span {
  color: var(--accent);
}

.moimoi-hero .lead {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.moimoi-hero .hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.moimoi-hero .btn.primary {
  background: var(--accent-strong);
  color: #041015;
  border-color: transparent;
  box-shadow: 0 15px 35px rgba(58, 240, 192, 0.25);
}

.moimoi-hero .btn:hover {
  transform: translateY(-2px);
}

.moimoi-hero .time-badge {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.moimoi-hero .time-badge strong {
  font-size: 1.5rem;
  color: var(--accent);
}

.moimoi-hero .btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.moimoi-hero .hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.moimoi-hero .hero-stats .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.moimoi-hero .hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  padding-top: 40px;
}

.moimoi-hero .chat-container {
  width: 360px;
  max-width: 100%;
  background: #090f1a;
  border-radius: 22px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(106, 242, 214, 0.18);
  margin: 0 auto 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center center;
}

.moimoi-hero .chat-container:hover {
    transform: scale(1.03);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.chat-container::before,
.chat-container::after {
    content: ''; 
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
	z-index: auto;
}

.chat-container::before {
    width: 300px;
    height: 300px;
    background-color: #007bff;
    top: -50px;
    right: -50px;
}
.chat-container::after {
    width: 250px;
    height: 250px;
    background-color: #4a9eff;
    bottom: -30px;
    left: -30px;
}

@media (max-width: 700px) {
  .chat-container {
    transform: scale(0.92);
    transform-origin: top center;
    margin-top: -1.5rem;
    margin-bottom: -0.2rem;
  }
}

.chat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 4px;
  background: rgba(255, 255, 255, 0.845);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: #f5f5f5;
  font-weight: 600;
  text-transform: uppercase;
}

.chat-brand strong {
  display: block;
  font-size: 0.95rem;
}

.chat-brand span {
  font-size: 0.75rem;
  color: rgba(245, 247, 255, 0.7);
}

.chat-actions {
  display: flex;
  gap: 6px;
}

.chat-actions span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 247, 255, 0.6);
}

.chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
}

/* Bolla base */
.message {
  max-width: 82%;
  padding: 11px 16px;
  border-radius: 16px;
  color: var(--ast-global-color-3);
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  border: 1px solid rgba(106, 242, 214, 0.25);
  background: rgba(6, 14, 20, 0.9);
}

.message.msg-1 {
  animation: msgSeq1 24s ease-in-out infinite both;
}
.message.msg-2 {
  animation: msgSeq2 24s ease-in-out infinite both;
}
.message.msg-3 {
  animation: msgSeq3 24s ease-in-out infinite both;
}
.message.msg-4 {
  animation: msgSeq4 24s ease-in-out infinite both;
}
.message.msg-5 {
  animation: msgSeq5 24s ease-in-out infinite both;
}

/* Messaggi "altri" (sinistra) */
.message.incoming {
  align-self: flex-start;
  background: var(--ast-global-color-5);
  border-bottom-left-radius: 6px;
}

/* Messaggi "miei" (destra) */
.message.outgoing {
  align-self: flex-end;
  background: var(--ast-global-color-1);
  color: var(--ast-global-color-3);
  border-bottom-right-radius: 6px;
}

.chat-header {
  background: linear-gradient(
    120deg,
    var(--ast-global-color-5),
    var(--ast-global-color-1)
  );
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--e-global-color-astglobalcolor2);
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(106, 242, 214, 0.15);
  background: linear-gradient(
    120deg,
    var(--ast-global-color-5),
    var(--ast-global-color-1)
  );
}

.chat-input input {
  flex: 1;
  border: 1px solid rgba(245, 247, 255, 0.15);
  background: transparent;
  color: var(--ast-global-color-3);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.9rem;
}

.chat-input input::placeholder {
  color: rgba(245, 247, 255, 0.4);
}

.chat-input input:disabled {
  cursor: not-allowed;
}

.chat-icons {
  display: flex;
  gap: 8px;
  color: rgba(245, 247, 255, 0.7);
  font-size: 0.9rem;

  a {
    color: rgba(245, 247, 255, 0.7);
    text-decoration: none;
  }
}

@keyframes msgSeq1 {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  4%,
  90% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  94%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes msgSeq2 {
  0%,
  12% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  16%,
  90% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  94%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes msgSeq3 {
  0%,
  24% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  28%,
  90% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  94%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes msgSeq4 {
  0%,
  36% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  40%,
  90% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  94%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes msgSeq5 {
  0%,
  48% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  52%,
  90% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  94%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.social-proof-container p {
    margin-bottom: 20px;
    font-weight: 500;
	color: var(--ast-global-color-3);
}

.logos-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.client-logo, .trusted-companies-claim {
    color: var(--ast-global-color-3);
    opacity: 0.5;
    transition: all 0.3s ease;
    max-height: 35px;
    width: auto;
}

.client-logo:hover, .trusted-companies-claim:hover {
    opacity: 0.9;
}

@media (max-width: 700px) {
  .moimoi-hero.hero {
    padding: 0.5rem 0 1rem;
  }

  .moimoi-hero .hero-stats {
    flex-direction: column;
  }

  .moimoi-hero .hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .moimoi-hero .hero-visual {
    order: -1;
    margin-top: -2rem;
    margin-bottom: -0.5rem;
  }

  .moimoi-hero .logo-orbit {
    width: 220px;
    height: 220px;
  }
}
