/* Wheeliot Cloud V2 · landing "Pillole V2". Brand tokens from wheeliot-web (src/styles/tokens.css). */

/* Archivo variable (titles 800, text 400) and Source Serif 4 italic for the "voice", both self-hosted, latin subset */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --petrol: #04858f;
  --petrol-d: #036b74;
  --petrol-dd: #02565d;
  --cyan: #54bdba;
  --ink: #1c1c1c;
  --yellow: #ffde05;
  --orange: #f28f1c;
  --muted: #566064;
  --tint: #e6f3f4;
  --page: #eef2f3;
  --white: #ffffff;
  --warn: #a34a00;
  /* derived: darker petrol for the hero gradient, hairlines */
  --night: color-mix(in srgb, var(--petrol-dd) 62%, #000);
  --line: color-mix(in srgb, var(--muted) 28%, var(--white));
  --frame-bar: #e9eef0;
  --frame-dot: #b9c4c7;
  --ph-bg: #e1e7e9;
  --ph-line: #8f9b9f;
  --field-line: color-mix(in srgb, var(--muted) 78%, var(--white));

  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-voice: "Source Serif 4", Georgia, serif;
  --radius: 6px;
  --max: 1160px;
  --gutter: clamp(16px, 4.5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--petrol-d); }
p, ul, ol, figure, h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible { outline-color: var(--white); }

.skip {
  position: absolute; left: 8px; top: -80px; z-index: 20;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--radius);
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.h2 { font-weight: 800; font-size: clamp(1.7rem, 4.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.eyebrow { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--petrol-d); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--radius);
  font: 800 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: color-mix(in srgb, var(--orange) 88%, var(--white)); }
.btn--orange:active { transform: translateY(1px); }
.btn--ghost { border-color: var(--white); color: var(--white); background: transparent; }
.btn--ghost:hover { background: color-mix(in srgb, var(--white) 14%, transparent); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 0.95rem; }
.btn[disabled] { cursor: progress; opacity: .85; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding-block: 8px; }
.logo { display: block; flex: none; }
.logo img { width: 70px; height: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white); overflow: clip;
  background: linear-gradient(165deg, var(--petrol-d) 0%, var(--petrol-dd) 48%, var(--night) 100%);
  padding-block: clamp(36px, 7vw, 72px) clamp(28px, 5vw, 48px);
}
/* Light grid, fading out towards the bottom */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--white) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--white) 8%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}
.hero__in { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__title { font-weight: 800; font-size: clamp(2.5rem, 8.5vw, 4.9rem); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.v2 { color: var(--cyan); }
.hero__lead { font-size: clamp(1.1rem, 2.6vw, 1.4rem); line-height: 1.4; max-width: 30em; }
.voice { font-family: var(--font-voice); font-style: italic; font-weight: 400; color: var(--cyan); }

/* PILLOLE | V2 capsule: white half, cyan half with the yellow dot */
.capsule { display: inline-flex; border-radius: 999px; overflow: hidden; box-shadow: 0 8px 24px rgb(0 0 0 / .28); font-weight: 800; letter-spacing: 0.12em; font-size: 0.95rem; color: var(--ink); }
.capsule__l { background: var(--white); padding: 11px 18px 11px 24px; }
.capsule__r { background: var(--cyan); padding: 11px 24px 11px 18px; display: inline-flex; align-items: center; gap: 9px; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 35%, transparent); }

.hero__fig { min-width: 0; }

/* Index of the nine functions */
.index { margin-top: clamp(32px, 5vw, 52px); }
.index__list { display: grid; grid-template-columns: 1fr; gap: 0 32px; border-top: 1px solid color-mix(in srgb, var(--white) 28%, transparent); }
.index__list a {
  display: flex; align-items: baseline; gap: 14px; padding: 12px 2px; min-height: 48px;
  color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.05rem;
  border-bottom: 1px solid color-mix(in srgb, var(--white) 28%, transparent);
}
.index__list b { color: var(--yellow); font-weight: 800; min-width: 1.6em; }
.index__list a:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Browser window around screenshots ---------- */
.browser { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 18px 44px rgb(2 40 44 / .28), 0 0 0 1px rgb(2 40 44 / .12); }
.browser__bar { display: flex; gap: 7px; align-items: center; height: 30px; padding-inline: 12px; background: var(--frame-bar); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--frame-dot); }
.browser img { width: 100%; height: auto; }
.ph {
  display: grid; place-items: center; aspect-ratio: 16 / 8; border-radius: 10px;
  background: var(--ph-bg); border: 2px dashed var(--ph-line); color: var(--muted); font-weight: 700;
}

/* ---------- The nine functions ---------- */
.fn { padding-block: clamp(44px, 8vw, 88px); }
.fn--white { background: var(--white); }
.fn--page { background: var(--page); }
section[id] { scroll-margin-top: 8px; }
.fn__top { display: grid; gap: 22px; margin-bottom: clamp(24px, 4vw, 40px); }
.fn__head { display: grid; gap: 14px; align-content: start; }
.fn__num { display: flex; align-items: baseline; gap: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; color: var(--petrol-d); }
.fn__num b { font-size: 1.05rem; letter-spacing: 0.06em; }
.fn__num span { color: var(--muted); }
.fn__text { font-size: 1.1rem; max-width: 36em; }
.fn__fig { min-width: 0; }

.ticks { display: grid; gap: 12px; align-content: start; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-weight: 600; line-height: 1.4; }
.fn--white .ticks li { background: var(--page); border-color: transparent; }
.tick { color: var(--petrol-d); margin-top: 1px; }

/* ---------- Lite + Cloud ---------- */
.lite { background: var(--tint); padding-block: clamp(44px, 8vw, 88px); }
.lite__in { display: grid; gap: 32px; align-items: center; }
.lite__copy { display: grid; gap: 16px; align-content: start; }
.lite .ticks--one li { background: var(--white); border: 0; }
.lite__fig { justify-self: center; width: min(100%, 420px); }

/* ---------- Form ---------- */
.demo { background: var(--page); padding-block: clamp(44px, 8vw, 88px); }
.demo__in { display: grid; gap: 28px; max-width: calc(780px + 2 * var(--gutter)); }
.demo__head { display: grid; gap: 12px; }
.demo__lead { font-size: 1.1rem; }
.form, .thanks { background: var(--white); border-radius: 10px; padding: clamp(20px, 4vw, 36px); box-shadow: 0 1px 0 var(--line), 0 14px 36px rgb(2 40 44 / .08); }
.grid { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label { font-weight: 700; font-size: 0.95rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--field-line); border-radius: var(--radius); font: 400 1rem/1.4 var(--font-body);
}
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' fill='none' stroke='%231c1c1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--petrol); outline-offset: 1px; border-color: var(--petrol-d); }
[aria-invalid="true"] { border-color: var(--warn); border-width: 2px; }
.err, .form-error { color: var(--warn); font-weight: 700; font-size: 0.9rem; }
.form-error { margin-top: 16px; padding: 12px 14px; border: 2px solid var(--warn); border-radius: var(--radius); background: var(--white); }

/* Honeypot: out of sight and out of the tab order, but still in the DOM for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.checks { display: grid; gap: 14px; margin-top: 22px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 0.95rem; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--petrol-d); }
.check + .err { margin: 6px 0 0 36px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.form__note { color: var(--muted); font-size: 0.9rem; }
.btn--submit { min-width: 220px; }
.spinner { display: none; width: 18px; height: 18px; border: 3px solid color-mix(in srgb, var(--ink) 25%, transparent); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
.is-busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.noscript { background: var(--white); border: 2px solid var(--warn); border-radius: var(--radius); padding: 14px; }

.thanks { display: grid; gap: 14px; justify-items: start; }
.thanks__ico { color: var(--petrol-d); }
.thanks h3 { font-weight: 800; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.15; }
.link { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 28px; font-size: 0.95rem; }
.site-footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.site-footer__co { font-weight: 800; color: var(--petrol-dd); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer__links a { display: inline-block; padding: 8px 0; color: var(--petrol-dd); font-weight: 600; }

/* ---------- Cookie banner (iubenda, colours set in consent.js) ----------
   iubenda styles its banner with !important rules on #iubenda-cs-banner: the same specificity plus !important
   is needed here, and the id is doubled
   (#a#a) to beat iubenda's later-loaded rules of equal weight. Accept and reject keep the same look on purpose (equal weight, Garante guidelines). */
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-container { max-width: 760px !important; margin: 0 auto !important; }
#iubenda-cs-banner#iubenda-cs-banner *, #iubenda-cs-banner#iubenda-cs-banner [class^="iub"], #iubenda-cs-banner#iubenda-cs-banner [class*=" iub"] {
  font-family: var(--font-body) !important;
}
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-content {
  font-family: var(--font-body) !important;
  border-radius: 8px !important; border-top: 6px solid var(--yellow) !important;
  box-shadow: 0 12px 40px rgba(28, 28, 28, .28) !important;
}
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-rationale { padding: 4px 4px 0 !important; }
#iubenda-cs-banner#iubenda-cs-banner #iubenda-cs-title {
  font-family: inherit !important; font-size: 12px !important; font-weight: 700 !important;
  letter-spacing: 1.5px !important; text-transform: uppercase !important; color: var(--petrol-d) !important;
}
#iubenda-cs-banner#iubenda-cs-banner #iubenda-cs-paragraph,
#iubenda-cs-banner#iubenda-cs-banner #iubenda-cs-paragraph p {
  font-family: inherit !important; font-size: 14px !important; line-height: 1.55 !important; color: var(--ink) !important;
}
#iubenda-cs-banner#iubenda-cs-banner #iubenda-cs-paragraph a { color: var(--petrol-d) !important; text-decoration: underline !important; font-weight: 700 !important; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group-consent { display: flex !important; gap: 12px !important; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group button {
  font-family: inherit !important; font-size: 14px !important; font-weight: 700 !important;
  letter-spacing: 1px !important; text-transform: uppercase !important;
  min-height: 48px !important; min-width: 150px !important; padding: 0 24px !important; margin: 0 !important;
  border-radius: 4px !important; box-shadow: none !important; opacity: 1 !important;
}
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group button:hover { background-color: var(--petrol-dd) !important; }
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group button:focus-visible { outline: 2px solid var(--ink) !important; outline-offset: 2px !important; }
@media (max-width: 639px) {
  #iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group-consent { width: 100% !important; }
  #iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-opt-group button { flex: 1 1 0 !important; min-width: 0 !important; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .index__list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .logo img { width: 86px; }
  .hero__in { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
  .index__list { grid-template-columns: repeat(3, 1fr); }
  .fn__top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
  .lite__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
}

/* CTAs added 18/11/2026: hero pair, one link per function, demo points, portrait screenshot */
.btn--light { background: var(--white); color: var(--petrol-dd); }
.btn--light:hover { background: var(--tint); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { font-size: 0.95rem; color: color-mix(in srgb, var(--white) 82%, transparent); margin-top: -8px; }
.fn__cta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: 1rem; }
.fn__cta > span { color: var(--muted); }
.fn__cta a { color: var(--petrol-d); text-underline-offset: 3px; }
.demo__points { margin-top: 6px; }
.browser--portrait { max-width: 420px; margin-inline: auto; }
