/* SpesaGenio - landing page (spesagenio.it). Stile ricavato da templates/landing/index.html. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2");
}

:root {
  --arancio: #E8590C;
  --arancio-hover: #D9480F;
  --arancio-testo: #C2410C;
  --arancio-testo-hover: #9A3412;
  --arancio-scuro: #FF7A2F;
  --arancio-chiaro: #FFF1E6;
  --teal: #0B7A75;
  --teal-chiaro: #E3F4F2;
  --teal-su-scuro: #2EC4B6;
  --inchiostro: #1E1B18;
  --inchiostro-2: #3A322B;
  --grigio: #6B6560;
  --grigio-chiaro: #D8CEC4;
  --crema: #FFF7F0;
  --sabbia: #F7F3EF;
  --bordo: #EDE6DF;
  --bianco: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--inchiostro);
  background: var(--bianco);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--arancio-testo); }
a:hover { color: var(--arancio-testo-hover); }

:focus-visible { outline: 3px solid var(--arancio); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 12px 18px; border-radius: 12px; background: var(--inchiostro); color: var(--bianco); font-weight: 800;
}
.skip:focus { top: 16px; color: var(--bianco); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--sabbia { background: var(--sabbia); }

/* Titoli e testi */
.eyebrow { font-size: 14px; font-weight: 900; letter-spacing: 1.6px; color: var(--arancio-testo); text-transform: uppercase; }
.h2 { margin: 10px 0 0; font-size: clamp(30px, 4vw, 44px); font-weight: 900; line-height: 1.1; letter-spacing: -.5px; }
.lead { margin: 14px 0 0; font-size: 18px; font-weight: 600; color: var(--grigio); line-height: 1.55; }
.intro { max-width: 640px; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 17px;
  background: var(--arancio); color: var(--bianco); font-weight: 800; font-size: 19px; text-decoration: none;
}
.btn:hover { background: var(--arancio-hover); color: var(--bianco); }
.btn--small { min-height: 48px; font-size: 16px; padding: 0 20px; }
.btn--scuro { background: var(--arancio-scuro); color: var(--inchiostro); }
.btn--scuro:hover { background: #FF9550; color: var(--inchiostro); }

.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stores--centro { justify-content: center; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 22px; border-radius: 16px;
  background: var(--inchiostro); color: var(--bianco); text-decoration: none;
}
a.store:hover { background: var(--inchiostro-2); color: var(--bianco); }
.store small { display: block; font-size: 12px; font-weight: 700; color: var(--grigio-chiaro); line-height: 1.1; }
.store b { display: block; font-size: 18px; font-weight: 900; line-height: 1.15; }
.store--presto { cursor: default; }

.nota { margin: 18px 0 0; font-size: 15px; font-weight: 700; color: var(--grigio); }
.nota a { font-weight: 800; }

/* Menu */
.header { background: var(--crema); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--inchiostro); }
.brand:hover { color: var(--inchiostro); }
.brand__nome { font-size: 28px; font-weight: 900; letter-spacing: -1px; }
.nav__link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav__link a:not(.btn) { color: var(--inchiostro); text-decoration: none; font-weight: 800; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
.nav__link a:not(.btn):hover { color: var(--arancio-testo); }

@media (max-width: 860px) {
  .nav { flex-wrap: nowrap; }
  .nav__link a:not(.btn) { display: none; }
}

@media (max-width: 400px) {
  .brand__nome { font-size: 24px; }
  .nav .btn--small { padding: 0 14px; font-size: 15px; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; padding-top: 48px; padding-bottom: 80px; }
.hero__testo { flex: 1 1 460px; min-width: 0; max-width: 600px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 18px;
  background: var(--bianco); font-size: 14px; font-weight: 800; color: var(--teal);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero h1 { margin: 22px 0 0; font-size: clamp(40px, 6vw, 68px); font-weight: 900; line-height: 1.02; letter-spacing: -1.5px; }
.hero h1 span { color: var(--arancio); }
.hero .lead { font-size: 20px; margin-top: 22px; }
.hero__visual { flex: 0 1 420px; display: flex; justify-content: center; position: relative; min-height: 640px; }

.flottante {
  position: absolute; z-index: 2; border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 14px 30px rgba(30, 27, 24, .12); display: flex; align-items: center; gap: 12px;
}
.flottante--alto { top: 90px; left: -10px; background: var(--bianco); }
.flottante--basso { bottom: 70px; right: -6px; background: var(--teal); color: var(--bianco); flex-direction: column; align-items: flex-start; gap: 0; box-shadow: 0 14px 30px rgba(11, 122, 117, .3); }
.flottante b { display: block; font-size: 14px; font-weight: 900; }
.flottante small { display: block; font-size: 13px; font-weight: 700; color: var(--grigio); }
.flottante--basso small { color: #CDEBE7; font-weight: 800; }
.flottante--basso strong { font-size: 26px; font-weight: 900; }

@media (max-width: 520px) {
  .hero__visual { min-height: 0; }
  .flottante { display: none; }
}

/* Telefono con la schermata vera dell'app */
.phone {
  width: 300px; border-radius: 46px; background: var(--inchiostro); padding: 10px;
  box-shadow: 0 30px 60px rgba(30, 27, 24, .18); flex-shrink: 0;
}
.phone--piccolo { width: 280px; }
.phone img { width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 36px; background: var(--bianco); }

/* Icone */
.ico { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico--arancio { background: var(--arancio-chiaro); color: var(--arancio-testo); }
.ico--teal { background: var(--teal-chiaro); color: var(--teal); }
.flottante .ico { width: 42px; height: 42px; border-radius: 13px; }

/* Vantaggi */
.vantaggi { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-top: 40px; padding-bottom: 40px; margin: 0 auto; list-style: none; }
.vantaggi li { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 800; line-height: 1.3; }

/* Card */
.griglia { display: grid; gap: 24px; margin-top: 44px; }
.griglia--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.griglia--4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { border: 1px solid var(--bordo); border-radius: 24px; padding: 28px; background: var(--bianco); display: flex; flex-direction: column; gap: 12px; }
.card--crema { background: var(--crema); border-color: var(--crema); }
.card h3 { margin: 6px 0 0; font-size: 22px; font-weight: 900; }
.card p { margin: 0; font-size: 16px; font-weight: 600; color: var(--grigio); line-height: 1.55; }
.card--crema h3 { font-size: 23px; margin-top: 8px; }
.card--crema p { font-size: 17px; }
.passo { width: 52px; height: 52px; border-radius: 16px; background: var(--arancio); color: var(--bianco); font-size: 24px; font-weight: 900; display: flex; align-items: center; justify-content: center; }

.esempio { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.esempio span { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--sabbia); font-size: 14px; font-weight: 800; }
.esempio span:first-child { background: var(--arancio-chiaro); }
.esempio span:first-child em { color: var(--arancio-testo); }
.esempio em { font-style: normal; }
.esempio--bordo span { background: var(--bianco); border: 1px solid var(--bordo); padding: 12px; align-items: center; }
.esempio--bordo small { display: block; font-size: 12px; font-weight: 900; color: var(--teal); }

/* Schermate dell'app */
.schermate {
  display: flex; gap: 28px; margin: 44px 0 0; padding: 0 0 12px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.schermate li { flex: 0 0 240px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.schermate .phone { width: 240px; border-radius: 38px; padding: 8px; box-shadow: 0 18px 36px rgba(30, 27, 24, .14); }
.schermate .phone img { border-radius: 30px; }
.schermate figcaption { font-size: 16px; font-weight: 800; text-align: center; }

/* Community e privacy */
.affianca { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.affianca__visual { flex: 0 1 360px; display: flex; justify-content: center; }
.affianca__testo { flex: 1 1 420px; min-width: 0; }
.spunte { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.spunte li { display: flex; gap: 12px; font-size: 17px; font-weight: 700; line-height: 1.45; }
.spunte svg { flex-shrink: 0; }

/* Supermercati */
.scuro {
  border-radius: 32px; background: var(--inchiostro); color: var(--bianco); padding: clamp(32px, 5vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.scuro__testo { flex: 1 1 420px; min-width: 0; max-width: 640px; }
.scuro .eyebrow { color: var(--arancio-scuro); }
.scuro .h2 { color: var(--bianco); }
.scuro .lead { color: var(--grigio-chiaro); }

/* FAQ */
.faq { max-width: 900px; }
.faq__lista { margin-top: 28px; border-top: 1px solid var(--bordo); }
details { border-bottom: 1px solid var(--bordo); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; font-size: 19px; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
summary h3 { margin: 0; font-size: inherit; font-weight: inherit; }
summary svg { flex-shrink: 0; transition: transform .2s; }
details[open] summary svg { transform: rotate(45deg); }
details p { margin: 0 0 22px; font-size: 17px; font-weight: 600; color: var(--grigio); line-height: 1.6; max-width: 760px; }

/* Invito finale */
.invito { background: var(--arancio); color: var(--bianco); padding: 80px 0; }
.invito .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.invito .h2 { color: var(--bianco); margin-top: 20px; max-width: 720px; }
.invito p { margin: 14px 0 0; font-size: 19px; font-weight: 700; max-width: 560px; line-height: 1.5; }
.invito .nota, .invito .nota a { color: var(--bianco); }

/* Footer */
.footer { background: var(--inchiostro); color: var(--grigio-chiaro); padding: 48px 0 32px; }
.footer__alto { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.footer__brand .brand, .footer__brand .brand:hover { color: var(--bianco); }
.footer__brand .brand__nome { font-size: 24px; }
.footer__brand p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.footer__colonne { display: flex; flex-wrap: wrap; gap: 48px; }
.footer__colonne nav { display: flex; flex-direction: column; gap: 10px; }
.footer__colonne h2 { margin: 0; font-size: 14px; font-weight: 900; color: var(--bianco); }
.footer a { color: var(--grigio-chiaro); text-decoration: none; font-weight: 700; }
.footer a:hover { color: var(--bianco); }
.footer__basso { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--inchiostro-2); font-size: 14px; font-weight: 600; }

/* Pagine interne (cookie, 404) */
.pagina { padding: 64px 0 80px; }
.pagina .wrap { max-width: 820px; }
.pagina h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); font-weight: 900; line-height: 1.1; letter-spacing: -.5px; }
.pagina h2 { margin: 36px 0 0; font-size: 24px; font-weight: 900; }
.pagina p, .pagina li { font-size: 17px; font-weight: 600; color: var(--grigio); line-height: 1.6; }

/* Utilità */
.hero-sfondo { background: var(--crema); }
.lista-pulita { padding: 0; list-style: none; }
.section--senza-alto { padding-top: 0; }
.schermate figure { margin: 0; display: contents; }
.esempio--bordo b { display: block; font-weight: 800; }
