/* ==========================================================================
   360 Design - Landing Google Ads
   Sistema: CSS nativo (nessun framework). Tema chiaro con supporto dark.
   Accent unico: verde brand #009C4E (fill CTA #007A3D per contrasto AA).
   Raggi: pill 999px per i bottoni, 16px per le card, 10px per gli input.
   ========================================================================== */

/* ---------- Token ---------- */
:root {
  --bg:        #ffffff;
  --bg-2:      #f4f6f3;
  --surface:   #ffffff;
  --line:      #e2e6e2;
  --line-soft: #eef1ee;

  --ink:       #16191b;
  --ink-2:     #4a5054;
  --ink-3:     #656b6f;   /* 5.4:1 su bianco, 5.0:1 su --bg-2 */

  --green:     #009c4e;   /* identita di marca */
  --green-cta: #007a3d;   /* fill bottoni, testo bianco = 5.4:1 */
  --green-cta-hover: #006834;
  --green-soft: #eaf5ee;
  --on-cta:    #ffffff;
  --focus:     #007a3d;

  --shadow-sm: 0 1px 2px rgba(22, 25, 27, .05), 0 2px 8px rgba(22, 25, 27, .04);
  --shadow-md: 0 2px 6px rgba(22, 25, 27, .06), 0 18px 40px -18px rgba(22, 25, 27, .22);
  --shadow-lg: 0 4px 10px rgba(22, 25, 27, .07), 0 34px 70px -28px rgba(22, 25, 27, .3);

  --r-card:  16px;
  --r-input: 10px;
  --r-pill:  999px;

  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 8vw, 7rem);

  --header-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0f1213;
    --bg-2:      #161a1b;
    --surface:   #171b1c;
    --line:      #272c2d;
    --line-soft: #1f2425;

    --ink:       #e9ecea;
    --ink-2:     #a9b0ad;
    --ink-3:     #848b88;

    --green:     #2fc97c;
    --green-cta: #00a854;   /* testo scuro sopra = 6.2:1 */
    --green-cta-hover: #14bd66;
    --green-soft: #12241a;
    --on-cta:    #06120b;
    --focus:     #2fc97c;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .45), 0 18px 40px -18px rgba(0, 0, 0, .6);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, .5), 0 34px 70px -28px rgba(0, 0, 0, .7);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: "Golos Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.026em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.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;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-2); }

.section-head { max-width: 58ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
.section-head p { margin-top: .9rem; font-size: clamp(1rem, 1.6vw, 1.09rem); max-width: 62ch; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Bottoni ---------- */
.btn {
  --btn-bg: var(--green-cta);
  --btn-fg: var(--on-cta);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px;
  padding: .8rem 1.65rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--green-cta-hover); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}
.btn--ghost:hover { background: var(--bg-2); border-color: var(--ink-3); }

.btn--sm { min-height: 44px; padding: .55rem 1.2rem; font-size: .94rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 96%, transparent); }
@supports not (backdrop-filter: blur(4px)) { .header { background: var(--bg); } }

.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.header__logo { display: flex; align-items: center; flex: none; }
.header__logo picture, .header__logo img { display: block; }
.header__logo img { height: 30px; width: auto; }

.header__nav { display: none; margin-inline-start: auto; }
.header__nav ul { display: flex; align-items: center; gap: 1.6rem; }
.header__nav a {
  font-size: .95rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .18s var(--ease);
}
.header__nav a:hover { color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: .75rem; margin-inline-start: auto; }
.header__nav + .header__actions { margin-inline-start: 0; }

.header__tel {
  display: none; align-items: center; gap: .5rem;
  min-height: 44px; padding-inline: .25rem;
  font-weight: 700; color: var(--ink); text-decoration: none; font-size: .95rem;
}
.header__tel .icon { color: var(--green); }
.header__tel:hover { color: var(--green-cta); }

@media (min-width: 900px) {
  .header__nav { display: block; }
  .header__tel { display: inline-flex; }
}
@media (max-width: 600px) {
  .header__actions .btn { display: none; }
  .header__tel { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.25rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.3rem); }
.hero h1 em { font-style: normal; color: var(--green); }
.hero__sub {
  margin-top: 1.2rem;
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  line-height: 1.55;
  max-width: 40ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.6rem, 3vw, 2.25rem); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute; left: clamp(-.5rem, -1vw, -1.5rem); bottom: 1.5rem;
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  font-size: .92rem; font-weight: 600; color: var(--ink);
  line-height: 1.3;
}
.hero__badge .icon { color: var(--green); width: 1.5rem; height: 1.5rem; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.12fr .88fr; }
}

/* ---------- Striscia garanzie ---------- */
.pillars { border-block: 1px solid var(--line); background: var(--bg-2); }
.pillars__grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.pillars__item {
  display: flex; gap: .95rem; align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.pillars__item:last-child { border-bottom: 0; }
.pillars__item .icon { color: var(--green); width: 1.6rem; height: 1.6rem; margin-top: .1rem; }
.pillars__item h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.015em; }
.pillars__item p { font-size: .93rem; margin-top: .3rem; line-height: 1.5; }

@media (min-width: 700px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem); }
  .pillars__item { padding: 1.75rem 0; }
  .pillars__item:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (min-width: 1040px) {
  .pillars__grid { grid-template-columns: repeat(4, 1fr); }
  .pillars__item { border-bottom: 0; padding: 2rem 0; }
}

/* ---------- Servizi (bento) ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
  .bento__cell--lead,
  .bento__cell--wide { grid-column: span 2; }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(0, auto); }
  .bento__cell--lead { grid-column: span 2; grid-row: span 2; }
  .bento__cell--wide { grid-column: span 3; }
}

.bento__cell {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px;
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.bento__cell--lead { min-height: 380px; }
.bento__cell--wide p { max-width: 52ch; }
@media (min-width: 1040px) {
  .bento__cell--lead { min-height: 440px; }
  .bento .bento__cell--wide { min-height: 320px; }
}

.bento__cell img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
  transition: transform .7s var(--ease);
}
.bento__cell::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 14, 12, .88) 0%, rgba(10, 14, 12, .55) 42%, rgba(10, 14, 12, .18) 100%);
}
.bento__cell:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .bento__cell:hover img { transform: none; } }

.bento__cell h3 {
  color: #fff;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  display: flex; align-items: center; gap: .6rem;
}
.bento__cell--lead h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.bento__cell h3 .icon { color: #6fe6a6; width: 1.3rem; height: 1.3rem; }
.bento__cell p {
  color: rgba(255, 255, 255, .86);
  font-size: .96rem; line-height: 1.5; margin-top: .55rem; max-width: 44ch;
}

/* ---------- Prima / Dopo ---------- */
.ba-layout { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 1040px) {
  .ba-layout { grid-template-columns: .82fr 1.18fr; align-items: center; }
  .ba-layout .section-head { margin-bottom: 1.75rem; }
  .ba .ba__stage { margin-inline: auto; }
}

.ba__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.ba__tab {
  min-height: 44px; padding: .5rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-2);
  font-size: .94rem; font-weight: 600; cursor: pointer;
  transition: all .2s var(--ease);
}
.ba__tab:hover { border-color: var(--ink-3); color: var(--ink); }
.ba__tab[aria-selected="true"] {
  background: var(--green-cta); border-color: var(--green-cta); color: var(--on-cta);
}

.ba__stage {
  --ar: 4 / 3;
  --stage-h: clamp(340px, 62vh, 620px);
  position: relative;
  width: 100%;
  max-width: min(100%, calc(var(--ar-num, 1.333) * var(--stage-h)));
  aspect-ratio: var(--ar);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow-md);
  touch-action: pan-y;
}
.ba__frame { position: absolute; inset: 0; }
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__label {
  position: absolute; top: .85rem;
  padding: .3rem .75rem;
  border-radius: var(--r-pill);
  background: rgba(10, 14, 12, .72);
  color: #fff;
  font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  pointer-events: none;
}
.ba__label--before { left: .85rem; }
.ba__label--after  { right: .85rem; }

.ba__divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(10, 14, 12, .18);
  pointer-events: none;
}
.ba__knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff; color: #16191b;
  box-shadow: 0 4px 14px rgba(10, 14, 12, .35);
}
.ba__knob .icon { width: 1.35rem; height: 1.35rem; }

.ba__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100%; }
.ba__range::-moz-range-thumb { width: 56px; height: 300px; border: 0; opacity: 0; }
.ba__range:focus-visible + .ba__divider .ba__knob { outline: 3px solid var(--focus); outline-offset: 3px; }

.ba__hint { margin-top: 0; font-size: .9rem; color: var(--ink-3); display: flex; align-items: center; gap: .45rem; }
.ba__hint .icon { width: 1.05rem; height: 1.05rem; }

/* ---------- Metodo ---------- */
.steps {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step { position: relative; padding-top: 1.4rem; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -.15rem; left: 0;
  transform: translateY(-100%);
  font-size: .82rem; font-weight: 700; color: var(--green);
  letter-spacing: .08em;
}
.step h3 { font-size: 1.12rem; display: flex; align-items: center; gap: .55rem; }
.step h3 .icon { color: var(--green); width: 1.25rem; height: 1.25rem; }
.step p { margin-top: .5rem; font-size: .95rem; line-height: 1.55; }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; row-gap: 2.5rem; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(5, 1fr); column-gap: 1.5rem; } }

/* ---------- Chi siamo ---------- */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .about { grid-template-columns: .95fr 1.05fr; } }
.about__media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-card); box-shadow: var(--shadow-md);
}
.about__body h2 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
.about__body p { margin-top: 1.1rem; font-size: 1.03rem; }
.about__facts { display: grid; gap: .75rem; margin-top: 1.75rem; }
.about__facts li { display: flex; gap: .65rem; align-items: flex-start; font-size: .98rem; color: var(--ink); font-weight: 500; }
.about__facts .icon { color: var(--green); width: 1.3rem; height: 1.3rem; margin-top: .13rem; }

/* ---------- Fornitori ---------- */
.brands { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.brands__title { font-size: .95rem; font-weight: 600; color: var(--ink-3); margin-bottom: 1.5rem; }
.brands__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
  align-items: center;
}
.brands__grid img {
  width: 100%; max-width: 128px; height: 52px; object-fit: contain;
  margin-inline: auto;
  filter: grayscale(1); opacity: .62;
  mix-blend-mode: multiply;
  transition: opacity .25s var(--ease), filter .25s var(--ease);
}
.brands__grid img:hover { filter: grayscale(0); opacity: 1; }
@media (prefers-color-scheme: dark) {
  .brands__grid img { mix-blend-mode: normal; filter: grayscale(1) invert(1) contrast(1.1); opacity: .55; }
  .brands__grid img:hover { opacity: .85; }
}
@media (min-width: 560px)  { .brands__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .brands__grid { grid-template-columns: repeat(5, 1fr); gap: 2rem; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer; list-style: none;
  color: var(--ink); font-weight: 700; font-size: clamp(1.02rem, 2vw, 1.14rem);
  letter-spacing: -.015em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--green); flex: none; margin-top: .1rem; transition: transform .25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding-bottom: 1.4rem; font-size: 1rem; max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { .faq summary .icon { transition: none; } }

/* ---------- Form / contatti ---------- */
.contact { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.1fr; } }

.contact__intro h2 { font-size: clamp(1.95rem, 4.6vw, 3rem); }
.contact__intro p { margin-top: 1rem; font-size: 1.05rem; max-width: 44ch; }
.contact__direct { display: grid; gap: .85rem; margin-top: 2rem; }
.contact__direct a, .contact__direct .contact__addr {
  display: flex; align-items: center; gap: .85rem;
  padding: .95rem 1.15rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  color: var(--ink); font-weight: 600; text-decoration: none; font-size: .98rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.contact__direct a:hover { border-color: var(--green); background: var(--green-soft); }
.contact__direct .icon { color: var(--green); width: 1.4rem; height: 1.4rem; flex: none; }
.contact__direct .contact__addr { font-weight: 500; color: var(--ink-2); }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.35rem, 3.5vw, 2.25rem);
  box-shadow: var(--shadow-md);
}
.form__grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form__grid { grid-template-columns: repeat(2, 1fr); } .field--full { grid-column: 1 / -1; } }

.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .89rem; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.field label .req { color: var(--green); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: .7rem .9rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 2.6rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-cta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent);
}
.field__hint { font-size: .82rem; color: var(--ink-3); }
.field__error { font-size: .84rem; font-weight: 600; color: #c02b1d; display: none; }
@media (prefers-color-scheme: dark) { .field__error { color: #ff8a7a; } }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c02b1d; }
.field.has-error .field__error { display: block; }

.consent { display: flex; gap: .75rem; align-items: flex-start; margin-top: .35rem; }
.consent input[type="checkbox"] {
  width: 22px; height: 22px; min-height: 0; margin: .18rem 0 0; flex: none;
  accent-color: var(--green-cta); cursor: pointer;
}
.consent label { font-size: .875rem; font-weight: 400; color: var(--ink-2); line-height: 1.5; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent.has-error label { color: #c02b1d; }

.form__foot { margin-top: 1.6rem; display: grid; gap: .85rem; }
.form__note { font-size: .84rem; color: var(--ink-3); text-align: center; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form__status {
  display: none; gap: .7rem; align-items: flex-start;
  margin-top: 1.15rem; padding: .95rem 1.1rem;
  border-radius: var(--r-input); font-size: .95rem; line-height: 1.5;
}
.form__status.is-visible { display: flex; }
.form__status.is-ok { background: var(--green-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); }
.form__status.is-ko { background: color-mix(in srgb, #c02b1d 8%, var(--bg)); color: var(--ink); border: 1px solid color-mix(in srgb, #c02b1d 35%, transparent); }
.form__status .icon { width: 1.35rem; height: 1.35rem; flex: none; margin-top: .08rem; }
.form__status.is-ok .icon { color: var(--green); }
.form__status.is-ko .icon { color: #c02b1d; }

.btn[data-loading="true"] { pointer-events: none; opacity: .8; }
.btn__spinner { display: none; animation: spin 1s linear infinite; }
.btn[data-loading="true"] .btn__spinner { display: block; }
.btn[data-loading="true"] .btn__label-idle { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn__spinner { animation-duration: 2.4s; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer__grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: auto 1fr auto; gap: 2.5rem; } }
.footer__logo img { height: 32px; width: auto; }
.footer__meta { font-size: .89rem; color: var(--ink-3); line-height: 1.6; }
.footer__meta a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .89rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); text-decoration: none; }
.footer__links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Barra sticky mobile ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 48px; padding: .5rem .4rem;
  border-radius: var(--r-pill);
  font-size: .88rem; font-weight: 700; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.mobile-bar a .icon { width: 1.15rem; height: 1.15rem; color: var(--green); }
.mobile-bar a.is-primary { background: var(--green-cta); border-color: var(--green-cta); color: var(--on-cta); }
.mobile-bar a.is-primary .icon { color: currentColor; }
@media (min-width: 760px) { .mobile-bar { display: none; } }
@media (max-width: 759px) { body { padding-bottom: 76px; } }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal[data-delay="1"] { transition-delay: .08s; }
  .js .reveal[data-delay="2"] { transition-delay: .16s; }
  .js .reveal[data-delay="3"] { transition-delay: .24s; }
}
