/* Public site styling for LocalMood - Version C (LocalMood identity, Apple-like layout) */
:root {
  --lm-bg: #ffffff;
  --lm-bg-alt: #fff7f3;
  --lm-primary: #fe9063;
  --lm-primary-soft: #ffe0d1;
  --lm-text: #1f1f23;
  --lm-text-soft: #555;
  --lm-border-soft: #f0e3dd;
  --lm-radius-lg: 24px;
  --lm-radius-md: 16px;
  --lm-shadow-soft: 0 18px 45px rgba(0,0,0,0.06);
  --lm-max-width: 1120px;
}
.lm-body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--lm-bg);
  color: var(--lm-text);
}
.lm-main { padding-bottom: 84px; }
.lm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.lm-header-inner {
  max-width: var(--lm-max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.lm-logo {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--lm-primary);
}

.lm-logo-img img {
  max-height: 50px;
  width: auto;
  display: block;
}

.lm-logofooter-img img {
  max-height: 30px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}

.lm-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}
.lm-nav a {
  text-decoration: none;
  color: var(--lm-text-soft);
  padding: 8px 8px 8px 8px;
  position: relative;
}
.lm-nav a:not(.lm-nav-cta):hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--lm-primary);
  border-radius: 999px;
}
.lm-nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--lm-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(254,144,99,0.4);
}
.lm-nav-cta:hover { filter: brightness(1.03); }

.lm-section { padding: 64px 20px; }
.lm-section-alt { background: var(--lm-bg-alt); }
.lm-section-inner {
  max-width: var(--lm-max-width);
  margin: 0 auto;
}
.lm-section h2 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2rem;
  margin: 0 0 16px;
}
.lm-section p {
  margin: 0 0 14px;
  color: var(--lm-text-soft);
  line-height: 1.6;
}
.lm-section-intro { max-width: 640px; }

.lm-hero {
  padding-top: 72px;
  padding-bottom: 72px;
  position: relative;
  overflow: hidden;
}
.lm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}
.lm-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lm-primary);
  margin: 0 0 10px;
}
.lm-hero h1 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 16px;
}
.lm-hero-text { font-size: 1.02rem; }
.lm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 8px;
}
.lm-hero-note {
  font-size: 0.9rem;
  color: var(--lm-text-soft);
}
.lm-hero-visual { display: flex; justify-content: center; }

.lm-two-col,
.lm-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: center;
}
.lm-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.lm-list li {
  margin-bottom: 14px;
  padding-left: 18px;
  position: relative;
  font-size: 0.95rem;
}
.lm-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lm-primary);
}
.lm-inline-cta a {
  color: var(--lm-primary);
  font-weight: 600;
}

.lm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.lm-step {
  background: #fff;
  border-radius: var(--lm-radius-md);
  padding: 18px 18px 20px;
  box-shadow: var(--lm-shadow-soft);
  border: 1px solid var(--lm-border-soft);
}
.lm-step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.lm-step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--lm-primary-soft);
  color: var(--lm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.lm-section-note { margin-top: 18px; font-size: 0.95rem; }

.lm-footer {
  border-top: 1px solid rgba(0,0,0,0.04);
  background: #fff;
}
.lm-footer-inner {
  max-width: var(--lm-max-width);
  margin: 0 auto;
  padding: 28px 20px 18px;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.lm-logo-small {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--lm-primary);
  margin-bottom: 6px;
}
.lm-footer-left p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--lm-text-soft);
}
.lm-footer-columns {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.lm-footer-col h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}
.lm-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.lm-footer-col li { margin-bottom: 4px; }
.lm-footer-col a {
  color: var(--lm-text-soft);
  text-decoration: none;
}
.lm-footer-col a:hover { color: var(--lm-primary); }
.lm-footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.03);
  text-align: center;
  padding: 10px 20px 16px;
  font-size: 0.85rem;
  color: var(--lm-text-soft);
}
.lm-legal .lm-section-inner { max-width: 800px; }

/* Dynamic / hero extra */
.lm-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at top left,#ffe0d1 0,#fff 40%,#fff 100%);
}
.lm-hero-orbit {
  position: absolute;
  border-radius: 999px;
  opacity: 0.75;
  filter: blur(2px);
  mix-blend-mode: multiply;
}
.orbit-1 { width: 360px; height: 360px; background: radial-gradient(circle at 30% 20%,#ffe0d1,#ffd0bc); top:-40px; left:-80px; animation: orbitFloat 22s infinite alternate; }
.orbit-2 { width: 420px; height: 420px; background: radial-gradient(circle at 70% 0%,#ffd8e2,#ffffff); top:-120px; right:-120px; animation: orbitFloat 26s infinite alternate-reverse; }
.orbit-3 { width: 380px; height: 380px; background: radial-gradient(circle at 30% 80%,#ffe8b5,#ffffff); bottom:-120px; right:10%; animation: orbitFloat 30s infinite alternate; }
@keyframes orbitFloat {
  0% { transform: translate3d(0,0,0); opacity:.7; }
  50% { transform: translate3d(10px,-6px,0); opacity:.9; }
  100% { transform: translate3d(-8px,6px,0); opacity:.75; }
}
.lm-hero-content { position: relative; z-index: 1; }
.lm-hero-visual { position: relative; z-index: 1; }
.lm-phone-stack { position: relative; max-width: 320px; }
.lm-phone-card {
  border-radius: 26px;
  padding: 16px 16px 18px;
  background: #fff;
  box-shadow: var(--lm-shadow-soft);
  border: 1px solid var(--lm-border-soft);
  font-size: 0.9rem;
}
.lm-phone-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--lm-text-soft); }
.lm-phone-card p { margin: 8px 0 0; color: var(--lm-text-soft); }
.lm-phone-header { font-weight: 700; margin-bottom: 4px; }
.card-1 { position: relative; z-index: 2; }
.card-2 {
  position: absolute;
  right: -26px;
  top: 22px;
  background: linear-gradient(135deg,#fe9063,#ffb48a);
  color: #fff;
  border: none;
  box-shadow: 0 16px 40px rgba(254,144,99,0.7);
}
.card-2 p { color:#fff; }

.lm-feature-media { display:flex; justify-content:center; }
.lm-spot-card {
  border-radius: 28px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--lm-shadow-soft);
  border: 1px solid var(--lm-border-soft);
}
.lm-spot-label {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:0.8rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--lm-primary);
  margin-bottom:10px;
}
.lm-spot-label::before {
  content:"";
  width:8px; height:8px;
  border-radius:999px;
  background:var(--lm-primary);
}
.lm-spot-illu {
  width:220px; height:160px;
  border-radius:22px;
  background-size:cover;
  background-position:center;
}
.illu-famiglie { background-image:linear-gradient(135deg,#fe9063,#ffd0bc); }
.illu-attivita { background-image:linear-gradient(135deg,#ffb48a,#ffe8b5); }
.illu-affiliati { background-image:linear-gradient(135deg,#fe9063,#ffd8e2); }

.lm-accordion {
  margin: 8px 0 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--lm-border-soft);
  padding: 6px 14px 10px;
}
.lm-accordion summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.lm-accordion[open] summary { margin-bottom: 6px; }
.lm-accordion summary::-webkit-details-marker { display:none; }
.lm-accordion summary::after {
  content:"▾";
  float:right;
  font-size:0.75rem;
  transform:translateY(2px);
}
.lm-accordion[open] summary::after { content:"▴"; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}
.btn-primary {
  background: var(--lm-primary);
  color: #fff;
  box-shadow: 0 16px 35px rgba(254,144,99,0.55);
}
.btn-primary:hover { filter:brightness(1.03); transform:translateY(-1px); }
.btn-secondary {
  background:#fff;
  color:var(--lm-text);
  border:1px solid rgba(0,0,0,0.08);
}
.btn-secondary:hover { background:#fafafa; }



.lm-burger {
  display:none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.lm-burger img {
  width: 28px;
  height: 28px;
  display: block;
}


.lm-burger svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Cookie banner */
.lm-cookie-banner {
  position:fixed;
  bottom:16px;
  left:50%;
  transform:translateX(-50%);
  max-width:960px;
  width:calc(100% - 32px);
  background:#ffffff;
  border-radius:16px;
  box-shadow:0 18px 45px rgba(0,0,0,0.18);
  border:1px solid rgba(0,0,0,0.06);
  padding:10px 14px;
  z-index:100;
  display:none;
}
.lm-cookie-inner {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.lm-cookie-inner p {
  margin:0;
  font-size:0.85rem;
  color:var(--lm-text-soft);
}
.lm-cookie-inner a {
  color:var(--lm-primary);
  font-weight:600;
}
.lm-cookie-actions { margin-left:auto; }
.btn-small { padding:7px 14px; font-size:0.85rem; }
.lm-cookie-banner.is-visible { display:block; }

@media (max-width: 860px) {
  .lm-burger { display:inline-flex; }
  .lm-nav {
    position:absolute;
    right:16px;
    top:54px;
    flex-direction:column;
    align-items:flex-end;
    background:#fff;
    padding:10px 14px;
    border-radius:16px;
    box-shadow:0 16px 40px rgba(0,0,0,0.12);
    display:none;
  }
  .lm-header.is-open .lm-nav { display:flex; }
  .lm-hero-grid,
  .lm-feature,
  .lm-steps {
    grid-template-columns:minmax(0,1fr);
  }
  .lm-cookie-inner { flex-direction:column; align-items:flex-start; }
  .lm-cookie-actions { margin-left:0; }
  .lm-section { padding:48px 16px; }
}



.lm-hero-image {
  width: 100%;
  max-width: 600px;
  display: block;
  position: relative;
  /* niente bordo, niente background, niente ombra */
    z-index: 2;
}

/* --- Como funziona: versione box con immagini --- */

.lm-howto-title {
  text-align: center;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 2.2rem;
  margin: 0 0 12px;
}

.lm-howto-subtitle {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 700px;
  color: var(--lm-text-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.lm-howto-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 32px;
  margin-top: 40px;
}

.lm-howto-box {
  background: #fff;
  border-radius: 22px;
  padding: 24px 20px 28px;
  text-align: center;
  box-shadow: var(--lm-shadow-soft);
  border: 1px solid var(--lm-border-soft);
}

.lm-howto-img img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.lm-howto-box h3 {
  margin: 12px 0 10px;
  font-size: 1.2rem;
  font-family: "Poppins", system-ui, sans-serif;
}

.lm-howto-box p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--lm-text-soft);
}

@media (max-width: 880px) {
  .lm-howto-boxes {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.lm-horizontal-box {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.lm-horizontal-box:last-child {
  border-bottom: none;
}

.lm-horizontal-img img {
  width: 80px;
  height: auto;
}

.lm-horizontal-text h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.lm-horizontal-text p {
  margin: 8px 0 0;
  line-height: 1.5;
  max-width: 700px;
}

/* Mobile */
@media (max-width: 768px) {
  .lm-horizontal-box {
    flex-direction: column;
    text-align: left;
  }

  .lm-horizontal-img img {
    width: 70px;
  }
}

.lm-feature2 {
  margin-top: 30px;
}

/* Ogni riga contiene 2 elementi */
.lm-feature2-row {
  display: flex;
  gap: 60px;
  margin-bottom: 40px;
}

/* Singolo elemento (icona + testo) */
.lm-feature2-item {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* Immagine */
.lm-horizontal-img img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: block;
}

/* Testo */
.lm-horizontal-text h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.lm-horizontal-text p {
  margin: 0;
  line-height: 1.5;
}

/* Mobile: impila tutto in verticale */
@media (max-width: 768px) {
  .lm-feature2-row {
    flex-direction: column;
    gap: 30px;
  }
}

.lm-big-button {
  display: inline-block;
  background: #ff7a3d;
  color: #fff;
  padding: 22px 40px;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(255, 122, 61, 0.25);
  transition: 0.2s ease;
}

.lm-big-button:hover {
  background: #ff6a1f;
  box-shadow: 0 8px 20px rgba(255, 122, 61, 0.32);
  transform: translateY(-2px);
}

/* ============ FORM REGISTRAZIONE BUSINESS ============ */

.lm-section.lm-section-alt#registrazione-step1 {
  padding-top: 60px;
  padding-bottom: 80px;
}

.lm-form-business {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

/* griglia 2 colonne */
.lm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 18px;
}

.lm-form-field-full {
  grid-column: 1 / -1;
}

.lm-form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #111827;
}

.lm-form-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background-color: #f9fafb;
}

.lm-form-field input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
  background-color: #ffffff;
}

.lm-form-field small {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #6b7280;
}

/* blocco policy / privacy */
.lm-form-legal {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.lm-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #374151;
}

.lm-checkbox input[type="checkbox"] {
  margin-top: 3px;
}

.lm-checkbox a {
  color: #2563eb;
  text-decoration: underline;
}

/* azioni form */
.lm-form-actions {
  margin-top: 24px;
  text-align: right;
}

.lm-form-actions .lm-big-button {
  /* se hai già definito lm-big-button, questa parte si può anche togliere */
  display: inline-block;
  border: none;
  cursor: pointer;
}

.lm-form-actions .lm-form-note {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: left;
}

/* errori */
.lm-error-box {
  max-width: 900px;
  margin: 0 auto 20px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.9rem;
}

.lm-error-box ul {
  margin: 0;
  padding-left: 18px;
}

/* mobile */
@media (max-width: 768px) {
  .lm-form-business {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .lm-form-grid {
    grid-template-columns: 1fr;
  }

  .lm-form-actions {
    text-align: left;
  }
}

/* Select del form di registrazione business */
.lm-form-business select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  outline: none;
  background-color: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;

  -webkit-appearance: none;
  appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7L10 11.5L14.5 7' stroke='%23999' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

.lm-form-business select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
  background-color: #ffffff;
}