/* ═══ MoTeMagno landing v3 · base (variabili, layout, hero, caroselli, footer) ═══ */

/* ───────────── VARIABILI E RESET ───────────── */
:root {
  --red: #E63946;
  --red-light: #fef2f2;
  --green: #10B981;
  --green-hover: #059669;
  --green-light: #ecfdf5;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  padding-bottom: 50px;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Helper universale per scrivere MoTeMagno colorato correttamente ovunque */
.mTM {
  font-weight: 900;
  color: inherit;
  letter-spacing: -0.03em;
}

.mTM span {
  color: var(--red) !important;
}

/* Testo solo-SEO: leggibile dai crawler, fuori dal flusso visivo */
.seo-intro {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 16px;
  line-height: 1.55;
}

/* ───────────── LOGO ED HEADER ───────────── */
.toplogo {
  text-align: center;
  padding: 45px 18px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.toplogo .brand-name {
  font-size: 2.3rem;
}

/* ───────────── HERO MISSIONE ───────────── */
.hero {
  text-align: center;
  padding: 30px 20px 30px;
}

.hero .heart {
  font-size: 1.1em;
  display: inline-block;
  animation: pulse 2s infinite;
  vertical-align: -0.05em;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.hero h1 {
  font-size: clamp(2.1rem, 6.5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.2;
  max-width: 620px;
  margin: 0 auto 20px;
  letter-spacing: -0.03em;
}

.hero h1 .place {
  display: inline-block;
  color: var(--green);
  border-bottom: 4px solid #6ee7b7;
  transition: opacity 0.35s ease;
  min-width: 160px;
}

.hero .sub {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero .sub .je {
  color: var(--red);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.hero .sub .je::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background-color: var(--red);
  opacity: 0.3;
}

/* ───────────── CAROSELLI (COME FUNZIONA / QUANTO COSTA) ───────────── */
.how {
  padding: 20px 0;
}

.how .label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 30px 36px;
  text-align: center;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -10px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}

/* Badge di invito al click */
.card-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 6px 14px;
  border-radius: 30px;
  margin-top: 15px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.card:hover .card-hint {
  opacity: 1;
}

.card .counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Slide con effetto dissolvenza pura */
.slide {
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 1;
}

.slide .em {
  font-size: 3rem;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.slide h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.slide p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Badge "in sviluppo" per feature future */
.slide .soon-tag,
.modal-desc .soon-tag {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Badge per i domini nella slide dedicata */
.slide .dom-inline {
  display: inline-block;
  background: var(--red-light);
  border: 1px dashed var(--red);
  color: var(--ink);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin: 2px 4px;
}

.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.on {
  background: var(--green);
  width: 28px;
  border-radius: 6px;
}

/* ───────────── PIE DI PAGINA ───────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 18px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

footer strong {
  color: var(--ink);
}

footer nav a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 8px;
}

footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ───────────── DISPOSITIVI TOUCH & SMALL MOBILE ───────────── */
@media (max-width: 480px) {
  .card {
    padding: 34px 18px 28px;
  }
}
