/* MG WeSi – stile del sito (mobile-first), ripreso dal biglietto da visita */

@font-face { font-family: "Poppins"; src: url("fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Colori del biglietto: ardesia, crema e corallo */
  --slate: #2b313d;
  --slate-2: #363d4b;
  --slate-3: #444c5c;
  --cream: #efe5d0;
  --cream-dim: #c9c1b0;
  --bg: #f6f1e7;
  --paper: #fffdf8;
  --line: #e6ddcb;
  --coral: #e07d5a;
  --coral-hover: #e9906f;
  --coral-text: #a8502f;
  --ink: #2b313d;
  --ink-soft: #5a6170;

  --radius: 18px;
  --shadow: 0 1px 2px rgb(43 49 61 / .06), 0 8px 24px rgb(43 49 61 / .08);
  --shadow-lg: 0 2px 4px rgb(43 49 61 / .08), 0 20px 44px rgb(43 49 61 / .18);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 8.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 5.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--coral-text); }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--slate); color: var(--cream); padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* La lineetta corallo del biglietto */
.bar { display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--coral); margin-bottom: 1.25rem; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 600; text-decoration: none; line-height: 1.2;
  border-radius: 999px; padding: .85em 1.4em;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn--wa { background: var(--coral); color: var(--slate); box-shadow: 0 8px 22px rgb(224 125 90 / .3); }
.btn--wa:hover { background: var(--coral-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgb(224 125 90 / .38); }
.btn--lg { font-size: 1.05rem; padding: 1.05em 1.6em; width: 100%; }
.btn--sm { font-size: .9rem; padding: .55em 1em; box-shadow: none; }

.link-arrow { font-weight: 600; color: var(--cream); text-decoration: none; padding: .5em 0; }
.link-arrow span { display: inline-block; transition: transform .2s ease; color: var(--coral); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Logo (come sul biglietto: MG grassetto, WeSi leggero) ---------- */
.logo { display: inline-flex; align-items: baseline; gap: .3rem; text-decoration: none; color: var(--cream); font-size: 1.45rem; line-height: 1; letter-spacing: -.01em; }
.logo__mg { font-weight: 700; }
.logo__wesi { font-weight: 300; }

/* ---------- Barra in alto ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgb(43 49 61 / .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--slate-3); box-shadow: 0 6px 20px rgb(0 0 0 / .12); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }

.nav { display: flex; gap: 2rem; }
.nav a, .topbar__back { color: var(--cream-dim); text-decoration: none; font-size: .92rem; }
.nav a:hover, .topbar__back:hover { color: var(--cream); }

@media (width < 960px) {
  .topbar__inner { gap: .75rem; }
  .nav a:not(.nav__reviews) { display: none; }
}

@media (width < 400px) {
  .topbar__inner > .btn--wa { padding: .75rem; }
  .topbar__inner > .btn--wa span { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--slate); color: var(--cream);
  padding: 3.25rem 0 4rem;
}
/* leggera grana "carta" come il biglietto */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 4px 4px;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -220px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgb(224 125 90 / .22), transparent 65%);
}
.hero__inner > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__inner > :nth-child(2) { animation-delay: .06s; }
.hero__inner > :nth-child(3) { animation-delay: .12s; }
.hero__inner > :nth-child(4) { animation-delay: .18s; }
.hero__inner > :nth-child(5) { animation-delay: .24s; }
.hero__inner > :nth-child(6) { animation-delay: .30s; }

.eyebrow {
  margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--coral);
}

.hero h1 { margin-top: .9rem; max-width: 15ch; color: var(--cream); }
.hl { color: var(--coral); white-space: nowrap; }
.hero__sub { font-size: clamp(1.05rem, 3.8vw, 1.3rem); font-weight: 300; color: var(--cream-dim); max-width: 34ch; }

.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin: 1.75rem 0 2.25rem; }

.badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.badges li {
  background: var(--slate-2); border: 1px solid var(--slate-3); border-radius: 14px; padding: .85rem .75rem;
  display: flex; flex-direction: column; line-height: 1.3;
}
.badges strong { font-size: 1rem; font-weight: 600; color: var(--cream); }
.badges span { font-size: .78rem; color: var(--cream-dim); font-weight: 300; }

/* Telefono con il sito (animato con GSAP in script.js) */
.hero__grid { display: grid; gap: 2.75rem; align-items: center; }
.hero__visual {
  position: relative; display: flex; justify-content: center; padding: .5rem 0 1rem;
  perspective: 1200px;
}
.phone {
  position: relative; width: min(54vw, 230px); padding: 9px; border-radius: 36px;
  background: #15181e;
  box-shadow: 0 0 0 2px #4a5262 inset, 0 30px 60px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .04);
  transform: rotate(-8deg);
  will-change: transform;
}
.phone img { width: 100%; height: auto; border-radius: 28px; }
.phone__notch {
  position: absolute; z-index: 1; top: 17px; left: 50%; width: 64px; height: 16px; margin-left: -32px;
  background: #15181e; border-radius: 20px;
}
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .45rem;
  background: var(--paper); color: var(--ink); font-size: .78rem; line-height: 1.2; white-space: nowrap;
  padding: .55rem .8rem; border-radius: 12px; box-shadow: 0 12px 30px rgb(0 0 0 / .3);
  will-change: transform;
}
.chip strong { color: var(--coral-text); }
.chip--a { left: 2%; top: 14%; }
.chip--b { right: 0; bottom: 14%; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf63; box-shadow: 0 0 0 3px rgb(47 191 99 / .2); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Sezioni ---------- */
.section { padding: 4.5rem 0; }
.section__head { margin-bottom: 2rem; max-width: 40rem; }
.section__lead { color: var(--ink-soft); font-size: 1.05rem; }
.kicker {
  display: block; font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--coral-text); margin-bottom: .6rem;
}
.kicker::before {
  content: ""; display: block; width: 32px; height: 3px; border-radius: 3px; background: var(--coral); margin-bottom: .9rem;
}

.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }

.checks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: #f6dcd0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23a8502f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Chi siamo */
.about { background: var(--paper); overflow-x: clip; }
.about p { color: var(--ink-soft); }
.about .checks li { font-weight: 600; color: var(--ink); }
.about__grid { display: grid; gap: 2.25rem; align-items: center; }
.about__photo { margin: 0; max-width: 420px; position: relative; }
.about__photo::before {
  content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 26px; background: var(--coral); z-index: 0;
}
.about__photo img { position: relative; border-radius: 26px; box-shadow: var(--shadow-lg); }
.about__ai {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  padding: .3rem .65rem; border-radius: 999px;
  background: rgba(43, 49, 61, .82); color: var(--cream);
  font-size: .72rem; line-height: 1.3;
}

/* Lavori */
.works__pending {
  display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(1.5rem, 5vw, 3.5rem); background: var(--paper);
  border: 1px dashed var(--coral-text); border-radius: var(--radius);
}
.works__pending .section__lead { margin: 0; }
.works__illustration { width: 5rem; color: var(--coral-text); }

/* Prezzi */
.pricing { background: var(--paper); }
.pricing__grid { display: grid; gap: 1.5rem; }
.price { padding: 1.75rem 1.5rem; border: 1px solid var(--line); box-shadow: none; position: relative; background: var(--bg); }
.price__amount { font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); margin: .25rem 0; line-height: 1.1; }
.price__amount small { font-size: .95rem; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }
.price--main { background: var(--slate); color: var(--cream); border-color: var(--slate); box-shadow: var(--shadow-lg); }
.price--main .price__amount { color: var(--cream); }
.price--main .price__amount small { color: var(--cream-dim); }
.price--main .checks li::before { background-color: rgb(224 125 90 / .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23e07d5a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"); }
.price { display: flex; flex-direction: column; }
.price h3 { margin-bottom: .35rem; }
.price__desc { font-size: .92rem; color: var(--ink-soft); line-height: 1.55; flex: 1; margin-bottom: 1.1rem; }
.price__agency { font-size: .82rem; color: var(--ink-soft); margin: 0; }
.price__agency s { text-decoration-thickness: 2px; text-decoration-color: var(--coral); }
.price__save {
  align-self: flex-start; margin: .6rem 0 0; font-size: .78rem; font-weight: 600;
  background: #f6dcd0; color: var(--coral-text); padding: .2rem .65rem; border-radius: 999px;
}
.price--main .price__desc, .price--main .price__agency { color: var(--cream-dim); }
.price--main .price__save { background: rgb(224 125 90 / .2); color: #f3b49b; }
.pricing__group { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin: 2.5rem 0 1.5rem; }
.pricing__group h3 { font-size: 1.35rem; margin: 0; }
.pricing__group p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.pricing__group + .pricing__grid { margin-bottom: 1rem; }
.pricing__note { margin: 2rem 0 0; font-size: .82rem; color: var(--ink-soft); }

.price__tag {
  position: absolute; top: -.8rem; left: 1.5rem; margin: 0;
  background: var(--coral); color: var(--slate); font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  padding: .3rem .8rem; border-radius: 999px; line-height: 1.4;
}

/* Come lavoriamo */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.step { background: var(--paper); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); position: relative; }
.step p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.step__n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1rem;
  background: var(--slate); color: var(--coral); font-weight: 700; font-size: 1.1rem;
}

/* Contatti */
.contact { padding-top: 1rem; }
.contact__box {
  background: var(--slate); color: var(--cream); border-radius: 26px; padding: 2.75rem 1.5rem; text-align: center;
  position: relative; overflow: hidden; isolation: isolate;
}
.contact__box::before {
  content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgb(224 125 90 / .25), transparent 65%); right: -140px; top: -160px;
}
.contact__box .bar { margin-inline: auto; }
.contact__box h2 { color: var(--cream); }
.contact__box > p { color: var(--cream-dim); font-weight: 300; max-width: 32rem; margin-inline: auto; margin-bottom: 1.75rem; }
.contact__box .btn--lg { max-width: 22rem; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.contact__list li { display: inline-flex; align-items: center; gap: .55rem; color: var(--cream-dim); }
.contact__list .icon { color: var(--coral); }
.contact__list a { color: var(--cream); font-weight: 600; text-underline-offset: 3px; }

/* Footer */
.footer { background: var(--slate); color: var(--cream-dim); font-size: .9rem; margin-top: 4.5rem; padding: 2.5rem 0 6rem; }
.footer__inner { display: flex; flex-direction: column; gap: 1rem; }
.footer p { margin: 0; }
.footer .logo { font-size: 1.3rem; }
.footer__tag { font-weight: 300; margin-top: .35rem !important; }
.footer__links { margin-top: .35rem !important; font-size: .82rem; }
.footer__links a { color: var(--cream); text-underline-offset: 3px; }

.reviews-page { min-height: 100vh; display: flex; flex-direction: column; }
.reviews-page .footer { margin-top: 0; padding-bottom: 2.5rem; }
.reviews {
  flex: 1; display: grid; align-items: center;
  background: radial-gradient(ellipse at 95% 15%, var(--slate-3), var(--slate) 65%);
  color: var(--cream);
}
.reviews__grid { display: grid; align-items: center; gap: 2rem; }
.reviews .kicker { color: var(--coral); }
.reviews__lead { max-width: 32rem; color: var(--cream-dim); font-size: 1.1rem; margin: 0; }
.reviews__card { padding: clamp(1.5rem, 4vw, 2.5rem); color: var(--ink); }
.reviews__card h2 { font-size: clamp(1.4rem, 4vw, 1.85rem); margin-top: 1.1rem; }
.reviews__card p { color: var(--ink-soft); margin: 0; }
.reviews__icon {
  width: 3.2rem; height: 3.2rem; padding: .85rem;
  border: 1px solid var(--line); border-radius: 14px; color: var(--coral-text);
}
.reviews__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 1.4rem; }
.reviews__button { background: var(--slate); color: var(--cream); }
.reviews__button:hover { background: var(--slate-3); transform: translateY(-2px); }
.reviews__write { font-weight: 600; text-underline-offset: 3px; }

/* Pagina privacy */
.legal { padding: 3rem 0 1rem; }
.legal__box { max-width: 46rem; }
.legal h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2.25rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal .updated { font-size: .9rem; }
.legal .note { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.back { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; text-decoration: none; }

.footer__place { color: var(--coral); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; }

/* Bottone WhatsApp fisso */
.fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--coral); color: var(--slate); box-shadow: 0 10px 26px rgb(43 49 61 / .35);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background-color .2s ease;
}
.fab .icon { width: 30px; height: 30px; }
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: var(--coral-hover); }

/* Animazioni allo scroll (attive solo se c'è JavaScript) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .hero__cta { flex-direction: row; align-items: center; gap: 1.5rem; }
  .btn--lg { width: auto; }
  .badges { max-width: 34rem; gap: .9rem; }
  .badges li { padding: 1rem; }
  .badges strong { font-size: 1.1rem; }
  .badges span { font-size: .85rem; }
  .works__pending { grid-template-columns: 1fr auto; }
  .works__illustration { width: 7rem; }
  .steps__list, .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { row-gap: 2rem; }
  .contact__box { padding: 3.75rem 2.5rem; }
  .contact__list { flex-direction: row; justify-content: center; gap: 2rem; }
  .footer { padding-bottom: 2.5rem; }
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .footer__inner > :last-child { text-align: right; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .hero { padding: 6rem 0 7rem; }
  .hero::after { width: 760px; height: 760px; right: -200px; top: -260px; }
  .hero__grid { grid-template-columns: 1.2fr .8fr; gap: 3rem; }
  .hero__visual { padding: 0; }
  .phone { width: 290px; border-radius: 44px; padding: 11px; }
  .phone img { border-radius: 34px; }
  .chip { font-size: .85rem; }
  .chip--a { left: -8%; }
  .chip--b { right: -6%; }
  .section { padding: 6.5rem 0; }
  .about__grid { grid-template-columns: 5fr 6fr; gap: 5rem; }
  .reviews__grid { grid-template-columns: 5fr 4fr; gap: 4rem; }
  .pricing__grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch; }
  .price { padding: 1.6rem 1.3rem; }
  .price__amount { font-size: 2.2rem; }
  .price--main { transform: translateY(-12px); }
  .js .price--main.reveal.is-visible { transform: translateY(-12px); }
  .steps__list { grid-template-columns: repeat(4, 1fr); }
}

/* Chi preferisce meno movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
