/* base.css */

body,
html {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

.main-wrapper {
  display: flex;
  flex-direction: row;

  width: 100%;
}

/* --- SEZIONE LANDING (SINISTRA) --- */
.landing-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  border-right: 1px solid #f0f0f0;
  text-align: center;
}

.landing-content {
  max-width: 650px;
}

/* Layout Affiancato Logo + Box */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  width: 100%;
}

.auth-logo {
  max-width: 180px;
  height: auto;
  mix-blend-mode: multiply;
  display: block;
}

.author-box {
  text-align: left;
  font-weight: 300;
  font-size: 1.2rem;
  /* Font grande come richiesto */
  line-height: 1.3;
  color: #333;
  max-width: 350px;
  /* Spezza il testo su più righe */
  padding: 10px 20px;
  border-left: 3px solid #000;
  /* Box definito dal bordo sinistro */
}

.mission {
  font-weight: 200;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 60px;
  width: 100%;
}

.feature-item {
  margin-bottom: 35px;
  text-align: left;
}

.feature-title {
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
  color: #000;
}

.feature-text {
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

.closing-statement {
  margin-top: 50px;
  font-weight: 200;
  font-size: 2.5rem;
  /* Font molto grande */
  letter-spacing: -1px;
  color: #000;
}

/* --- SEZIONE AUTH (DESTRA) - Preserva stili originali --- */
.auth-section {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fafafa;
}

.auth-container {
  width: 100%;
  /* Ripristinato da originale */
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

#app-status {
  display: flex;
  justify-content: center;
}

/* h3 del credito originale nel login */
.auth-container h3 {
  font-weight: 300;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 5px;
}

h2#auth-title {
  font-weight: 200;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
  font-size: 1.2rem;
  /* Allineato a originale */
}

input {
  width: 100%;
  padding: 12px 0;
  margin: 10px 0;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

input:focus {
  border-bottom: 1px solid #000;
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 30px;
  background: none;
  border: 1px solid #000;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
}

button:hover {
  background: #000;
  color: #fff;
}

.toggle-link {
  margin-top: 20px;
  font-size: 0.75rem;
  font-weight: 300;
  color: #888;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#message {
  height: 20px;
  font-size: 0.7rem;
  margin-top: 15px;
  font-weight: 300;
}

h5 {
  font-weight: 300;
  /* Leggermente più leggibile */
  font-size: 0.85rem;
  /* Aumentato da 0.65rem */
  color: #888;
  /* Grigio un po' più scuro per contrasto */
  margin-top: 40px;
}

h5 a {
  color: #444;
  /* Link più evidente */
  text-decoration: underline;
  /* Sottolineatura opzionale per chiarezza */
}


/* --- FOTO LANDING --- */
.landing-photo {
  width: 80%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin-bottom: 30px;
  margin-top: 15px;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(18, 29, 32, 0.341);
}

/* --- STATUS APPLICAZIONE --- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ping-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.app-btn {
  display: block;
  padding: 12px 32px;
  margin-bottom: 16px;
  width: 60%;
  text-align: center;
  box-sizing: border-box;
  align-self: center;
  border: 1px solid #000;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  transition: all 0.3s;
}

.app-offline {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: #888;
}

/* --- CTA BUTTONS (landing sinistra) --- */
.cta-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 40px;
  width: 100%;
}

.cta-buttons .app-btn,
.cta-buttons a.app-btn {
  flex: 1;
  width: auto;
  align-self: auto;
  margin-bottom: 0;
}

.cta-buttons #app-status {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-buttons .app-offline {
  flex: 1;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: #888;
}

/* RESPONSIVE PER MOBILE */
@media (max-width: 900px) {
  .main-wrapper {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
  }

  .landing-section {
    flex: none;
    padding: 60px 20px;
    border-right: none;
  }

  .auth-section {
    flex: none;
    padding: 60px 20px;
    border-top: 1px solid #f0f0f0;
  }

  .header-top {
    flex-direction: column;
    gap: 15px;
  }

  .author-box {
    border-left: none;
    border-top: 2px solid #000;
    padding: 15px 0;
    text-align: center;
  }

  body,
  html {
    overflow: auto;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .app-btn,
  .cta-buttons #app-status,
  .cta-buttons a.app-btn {
    flex: none;
    width: 100%;
    box-sizing: border-box;
  }

  .testimonials-section {
    padding: 48px 20px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-featured {
    grid-column: span 1;
  }
}

/* --- TESTIMONIANZE --- */
.testimonials-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 72px 40px;
}

.testimonials-inner {
  max-width: 960px;
  margin: 0 auto;
}

.testimonials-title {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 40px;
}

.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 24px 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-featured {
  grid-column: span 2;
  border-left: 3px solid #000;
}

.testimonial-quote {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #334155;
  font-weight: 300;
  flex: 1;
  margin: 0;
}

.testimonial-author {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.testimonial-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: #0f172a;
  margin: 0 0 2px;
  letter-spacing: 0.03em;
}

.testimonial-role {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 300;
  margin: 0;
}

