/* Alloggiati Facile — marketing site stylesheet.
   Self-contained: no third-party fonts, CDNs or trackers (handoff §6).
   Audience: non-technical, often older hosts → large readable type, calm
   colours, high contrast, generous spacing. Mobile-first. */

/* ---- design tokens ---------------------------------------------------- */
:root {
  --blue:        #0B3D6E;  /* primary dark blue (hero, headings) */
  --blue-800:    #0a355f;
  --blue-700:    #114a83;
  --amber:       #FFC94D;  /* accent — checkmark / highlights (sparingly) */
  --amber-600:   #E9AF2E;  /* amber for LARGE elements on white only (fails AA as text) */
  --amber-ink:   #7a5b00;  /* dark amber — passes WCAG AA on white (eyebrows, glyphs) */
  --ink:         #17222e;  /* body text */
  --ink-soft:    #45566a;  /* secondary text */
  --line:        #dde5ee;  /* hairlines */
  --surface:     #ffffff;
  --surface-2:   #f5f8fc;  /* near-white section background */
  --surface-blue:#eaf1f8;  /* pale blue tint */
  --ok:          #1f8a4c;  /* "valid / done" green */
  --focus:       #1a73c7;
  --maxw:        1100px;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 1px 2px rgba(11,61,110,.06), 0 8px 30px rgba(11,61,110,.08);
  --shadow-lg:   0 10px 40px rgba(11,61,110,.16);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---- reset-ish -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .btn:hover, .btn:active { transform: none; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem; /* ≈18px, but honours the user's default-font-size preference */
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--blue); }
h1, h2, h3 { color: var(--blue); line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.15rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1em; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ---- layout helpers --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint  { background: var(--surface-2); }
.section--blue  { background: var(--blue); color: #eaf2fb; }
.section--blue h2, .section--blue h3 { color: #fff; }
.section--blue a { color: #fff; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--amber-ink); margin-bottom: .7rem;
}
.section--blue .eyebrow, .hero .eyebrow { color: var(--amber); }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); }
.section--blue .lead { color: #cfe0f2; }

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 700; font-size: 1.02rem; line-height: 1;
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--amber); color: #3b2a00; box-shadow: 0 6px 18px rgba(255,201,77,.35); }
.btn--primary:hover { background: #ffd66e; color: #3b2a00; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--dark { background: var(--blue); color: #fff; }
.btn--dark:hover { background: var(--blue-700); color: #fff; }
.btn--block { width: 100%; }
.btn small { font-weight: 600; opacity: .8; }

/* "coming soon" store chip (swapped for a real Play badge at launch) */
.store-cta { display: inline-flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.store-chip {
  display: inline-flex; align-items: center; gap: .7rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: .8rem 1.15rem; border-radius: 14px; font-weight: 600;
}
.store-chip .badge {
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--amber); color: #3b2a00; padding: .25rem .5rem; border-radius: 6px;
}
.section--blue .store-note, .hero .store-note { color: #b9cde3; font-size: .95rem; }
.store-note { color: var(--ink-soft); font-size: .95rem; }

/* Google Play store badge — links to the live listing. */
.store-badge {
  display: inline-flex; align-items: center; gap: .75rem; text-decoration: none;
  background: #0b0b0c; color: #fff; border: 1px solid rgba(255,255,255,.28);
  padding: .7rem 1.4rem; border-radius: 13px; transition: transform .12s ease, background .12s ease;
}
.store-badge:hover { background: #000; color: #fff; transform: translateY(-1px); }
.store-badge:active { transform: translateY(0); }
.store-badge svg { width: 27px; height: 27px; flex: none; }
.store-badge .t { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.store-badge .t small { font-size: .69rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; opacity: .9; }
.store-badge .t strong { font-size: 1.18rem; font-weight: 700; letter-spacing: .01em; }

/* ---- header / nav ----------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--blue); text-decoration: none; font-size: 1.1rem; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav__links { display: flex; gap: .35rem; margin-left: auto; align-items: center; }
/* :not(.btn) so a CTA button in the nav keeps its own .btn colours/padding
   (otherwise this more-specific rule would override the button's text colour). */
.nav__links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: .5rem .8rem; border-radius: 10px; }
.nav__links a:not(.btn):hover, .nav__links a:not(.btn)[aria-current="page"] { background: var(--surface-blue); color: var(--blue); }
.nav__cta { margin-left: .3rem; }
.nav__cta.btn { padding: .62rem 1.15rem; font-size: .98rem; }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  /* The bar wraps so the link list can drop onto its own row (no-JS case). */
  .nav { flex-wrap: wrap; }
  .nav__toggle {
    margin-left: auto; background: none; border: 1px solid var(--line);
    border-radius: 10px; padding: .5rem .6rem; cursor: pointer; align-items: center; gap: .4rem;
    font: inherit; font-weight: 600; color: var(--blue);
  }
  /* Toggle button only makes sense when JS can drive it. */
  .js .nav__toggle { display: inline-flex; }

  /* No-JS default: links visible, stacked, in flow below the brand. */
  .nav__links {
    flex-direction: column; align-items: stretch; gap: 0; margin-left: 0;
    flex-basis: 100%; width: 100%; padding-top: .3rem;
  }
  .nav__links a { padding: .8rem .6rem; border-radius: 10px; }
  .nav__cta { margin: .4rem 0; }

  /* JS on: collapse into a dropdown panel toggled by the button. */
  .js .nav__links {
    position: absolute; top: 66px; left: 0; right: 0; display: none; width: auto;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .5rem clamp(1.1rem, 4vw, 2rem) 1rem;
  }
  .js .nav__links[data-open="true"] { display: flex; }
}

/* ---- hero ------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--blue) 0%, var(--blue-800) 100%); color: #eaf2fb; overflow: hidden; }
.hero .wrap { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { color: #fff; }
.hero p.lead { color: #cfe0f2; max-width: 38ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; align-items: center; }
.hero__trust { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: 1.1rem; color: #bcd2ea; font-size: .95rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__phone { justify-self: center; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .hero__phone { order: -1; }
}

/* ---- phone frame ------------------------------------------------------ */
.phone {
  width: min(280px, 74vw); border-radius: 30px; padding: 10px; background: #0a2947;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12);
}
.phone img { border-radius: 22px; display: block; width: 100%; }
.phone--sm { width: min(230px, 62vw); }

/* ---- feature / benefit cards ----------------------------------------- */
.grid { display: grid; gap: 1.15rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: .2rem; }
.card p:last-child { margin-bottom: 0; }
.card .ic {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 12px; background: var(--surface-blue); color: var(--blue); margin-bottom: .9rem;
}
.card .ic svg { width: 26px; height: 26px; }

/* ---- steps (numbered) ------------------------------------------------- */
.steps { display: grid; gap: 1.15rem; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--amber); color: #3b2a00; font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.section--blue .step::before { box-shadow: 0 0 0 4px rgba(255,201,77,.18); }

/* ---- screenshot strip ------------------------------------------------- */
.shots { display: flex; gap: 1.1rem; overflow-x: auto; padding: .5rem .2rem 1.2rem; scroll-snap-type: x mandatory; }
.shots .phone { flex: 0 0 auto; scroll-snap-align: center; }
.shots figure { margin: 0; text-align: center; }
.shots figcaption { color: var(--ink-soft); font-size: .9rem; margin-top: .6rem; max-width: 230px; }

/* ---- checklist -------------------------------------------------------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.ticks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .7rem; align-items: start; }
.ticks svg { width: 1.35rem; height: 1.35rem; color: var(--ok); margin-top: .18rem; flex: none; }
.section--blue .ticks svg { color: var(--amber); }

/* ---- callout / disclaimer -------------------------------------------- */
.callout { border-left: 4px solid var(--amber); background: var(--surface-blue); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; }
.note { font-size: .95rem; color: var(--ink-soft); }

/* ---- FAQ (details/summary) ------------------------------------------- */
.faq { display: grid; gap: .7rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 700; color: var(--blue);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--amber-ink); font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .faq__body { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---- CTA band --------------------------------------------------------- */
.ctaband { text-align: center; }
.ctaband .store-cta { align-items: center; }

/* ---- footer ----------------------------------------------------------- */
.site-footer { background: #071f38; color: #a9c1da; font-size: .96rem; padding-block: 2.6rem 2rem; }
.site-footer a { color: #d7e6f6; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.8rem; margin-bottom: 1.8rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 1.3rem; } }
.footer__brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: .6rem; text-decoration: none; }
.footer__brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer h3 { color: #fff; font-size: .95rem; margin: 0 0 .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.3rem; display: grid; gap: .9rem; color: #93aeca; font-size: .9rem; }
.disclaimer { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 1rem 1.15rem; line-height: 1.55; }

/* ---- misc ------------------------------------------------------------- */
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--blue); padding: .7rem 1rem; border-radius: 0 0 10px 0; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.pill { display: inline-block; background: var(--surface-blue); color: var(--blue); font-weight: 700; font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; }
hr.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---- breadcrumb ------------------------------------------------------- */
.breadcrumb { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumb a { color: var(--blue-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- article / guide prose ------------------------------------------- */
.prose { font-size: 1.08rem; max-width: 760px; }
.prose > h2 { margin-top: 2.4rem; }
.prose > h3 { margin-top: 1.7rem; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--amber-ink); font-weight: 700; }
.prose a { color: var(--blue-700); font-weight: 600; }
.prose .callout { margin: 1.5rem 0; }
.prose .callout p { margin-bottom: .6em; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose figure { margin: 1.6rem 0; }
.prose .lead { margin-bottom: 1.4em; }

/* key-facts box at the top of a guide */
.keybox { background: var(--surface-blue); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 0 0 1.8rem; }
.keybox h2 { font-size: 1.05rem; margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); }
.keybox ul { margin: 0; padding-left: 1.2em; }
.keybox li { margin-bottom: .4em; }

/* ---- guide hub -------------------------------------------------------- */
.hub-cat { margin-top: 2.6rem; }
.hub-cat:first-of-type { margin-top: 1.4rem; }
.hub-cat > h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.hub-list { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .hub-list { grid-template-columns: 1fr; } }
.hub-list a { display: block; padding: 1.05rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-decoration: none; }
.hub-list a:hover { border-color: var(--amber); transform: translateY(-1px); transition: transform .12s ease, border-color .12s ease; }
.hub-list .t { display: block; color: var(--blue); font-weight: 700; margin-bottom: .2rem; }
.hub-list .d { display: block; color: var(--ink-soft); font-size: .95rem; }

/* ---- related guides (in-article) ------------------------------------- */
.related { border-top: 1px solid var(--line); margin-top: 2.4rem; padding-top: 1.6rem; }
.related h2 { font-size: 1.15rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .related ul { grid-template-columns: 1fr; } }
.related a { color: var(--blue-700); font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* ---- pricing ---------------------------------------------------------- */
.price-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .price-wrap { grid-template-columns: 1fr; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2rem 1.9rem; }
.price-card .plan { font-weight: 700; color: var(--amber-ink); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.price { font-size: 3.1rem; font-weight: 800; color: var(--blue); line-height: 1.05; margin: .3rem 0 .1rem; }
.price span { font-size: 1.05rem; font-weight: 600; color: var(--ink-soft); }
.price-card .trial { color: var(--ok); font-weight: 700; margin: .2rem 0 1.2rem; }
.price-card .ticks { margin-bottom: 1.5rem; }
.price-card .btn, .price-card .store-badge { width: 100%; }
.price-card .store-badge { justify-content: center; }
