/* Wheeliot @ Ecomondo 2026 landing - "Opzione A / Segnale" */

/* Roboto latin subset, variable font (covers 400/700/900), self-hosted */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin.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 {
  --teal: #047f89;
  --teal-soft: #e6f3f4;
  --yellow: #ffde05;
  --orange: #f28f1c;
  --ink: #1c1c1c;
  --bg: #eef2f3;
  --grey: #566064;
  --line: #d5dde0;
  --mint: #54bdba;
  --warn: #a34a00;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* Size the fluid type against the page width (cqi), with vw fallback declared first in each rule */
.page { container-type: inline-size; width: 100%; overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); }
p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 4px;
}
.skip:focus { top: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; }
.nowrap { white-space: nowrap; }
.muted { color: var(--grey); }
.small { font-size: 14px; }
.lead-16 { max-width: 40em; }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.eyebrow--teal { color: var(--teal); }
.eyebrow--grey { color: var(--grey); text-align: right; }

.h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  font-size: clamp(30px, 3.6cqi, 44px);
  line-height: 1.1; font-weight: 900; letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 32px; border: 0; border-radius: 4px;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: #ffa033; }
.btn[disabled] { cursor: progress; opacity: .85; }

/* ---------- Header ---------- */
.site-header { background: #fff; }
.site-header__in {
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { width: clamp(96px, 11vw, 124px); width: clamp(96px, 11cqi, 124px); height: auto; }

/* ---------- Hero ---------- */
.hero { background: var(--teal); border-top: 6px solid var(--yellow); color: #fff; }
.hero__in {
  padding: clamp(36px, 6vw, 72px) var(--gutter);
  padding-block: clamp(36px, 6cqi, 72px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px;
}
.hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero__title {
  margin: 0;
  font-size: clamp(42px, 6.4vw, 80px);
  font-size: clamp(42px, 6.4cqi, 80px);
  line-height: 1.02; font-weight: 900; letter-spacing: -0.02em;
}
.hero__lead {
  font-size: clamp(17px, 1.7vw, 20px);
  font-size: clamp(17px, 1.7cqi, 20px);
  line-height: 1.5; max-width: 32em;
}
.hero__cta { align-self: flex-start; min-height: 54px; }
.hero__fig { flex: 1 1 340px; min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__fig img { width: 100%; max-width: 440px; }
.hero__fig figcaption { font-size: 14px; color: var(--teal-soft); text-align: center; }

.plate {
  background: var(--yellow); color: var(--ink);
  padding: 16px 22px 18px; max-width: 520px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.plate__txt { display: flex; flex-direction: column; gap: 2px; }
.plate__big {
  font-size: clamp(24px, 2.6vw, 32px);
  font-size: clamp(24px, 2.6cqi, 32px);
  line-height: 1.15; font-weight: 900; letter-spacing: -0.01em;
}
.plate__arrow { flex-shrink: 0; }

/* ---------- Request cards ---------- */
.requests { padding: clamp(48px, 7vw, 88px) var(--gutter) 32px; padding-block: clamp(48px, 7cqi, 88px) 32px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }

.card {
  display: flex; flex-direction: column; gap: 12px; align-items: stretch;
  min-height: 236px; padding: 22px 22px 20px; text-align: left;
  background: #fff; border: 2px solid var(--line); border-radius: 6px;
  font: inherit; color: var(--ink); cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.card[aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal); }
.card:disabled { background: #f4f6f7; border-color: #e1e6e8; opacity: .7; cursor: not-allowed; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.card__num { font-size: 13px; font-weight: 900; letter-spacing: 2px; color: var(--teal); }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
.card:disabled .pill { background: #e1e6e8; }
.card__title { display: block; font-size: 21px; line-height: 1.2; font-weight: 900; }
.card__desc { display: block; flex-grow: 1; font-size: 15px; line-height: 1.5; color: var(--grey); }
.card__foot { display: flex; align-items: center; font-size: 14px; font-weight: 700; min-height: 22px; }

.st { display: none; align-items: center; gap: 10px; }
.card[aria-pressed="true"] .st--on { display: flex; color: var(--teal); }
.card:not([aria-pressed="true"]):not(:disabled) .st--off { display: flex; }
.card:disabled .st--lock { display: flex; color: var(--grey); }
.box {
  display: inline-block; width: 22px; height: 22px; flex-shrink: 0;
  border: 2px solid #8a9599; border-radius: 3px; background: #fff;
}
.box--on { display: inline-flex; align-items: center; justify-content: center; background: var(--teal); border-color: var(--teal); }

.req-error, .form-error { font-size: 14px; font-weight: 700; color: var(--warn); }

/* ---------- Form ---------- */
.formsec { padding: 16px var(--gutter) clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7cqi, 88px); }
.form {
  background: #fff; border-top: 6px solid var(--teal);
  padding: clamp(24px, 4vw, 48px); padding: clamp(24px, 4cqi, 48px);
  display: flex; flex-direction: column; gap: 26px;
}
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px 20px; }
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  display: block; width: 100%; height: 52px; padding: 0 14px;
  border: 1.5px solid #8a9599; border-radius: 6px; background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; /* 16px avoids iOS zoom-on-focus */
}
.field select { padding: 0 12px; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
.err { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--warn); }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--teal); }
.check a { font-weight: 700; }
.check-wrap .err { margin-left: 34px; }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn--submit { min-width: min(100%, 260px); }
.hint-none { font-size: 14px; font-weight: 700; color: var(--warn); }

.spinner {
  display: none; width: 18px; height: 18px; flex-shrink: 0;
  border: 2.5px solid rgba(28, 28, 28, .3); border-top-color: var(--ink); border-radius: 50%;
  animation: spin .8s linear infinite;
}
.is-busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* ---------- Stand section ---------- */
.stand { background: #fff; }
.stand__in {
  padding: clamp(48px, 7vw, 88px) var(--gutter); padding-block: clamp(48px, 7cqi, 88px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px;
}
.stand__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.bullets li { position: relative; padding-left: 24px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; background: var(--mint); }
/* Link to the Iperammortamento simulator on wheeliot.com (stand section bullet). */
.simlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.simlink:hover { color: var(--ink); }
.simlink:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.quote {
  margin-top: 8px; padding: 2px 0 2px 16px; border-left: 3px solid var(--mint);
  font-size: 18px; line-height: 1.5; font-weight: 700;
}
.quote span { color: var(--teal); }
.stand__fig { flex: 1 1 380px; min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stand__fig img { width: 100%; max-width: 560px; }

/* ---------- Confirmation view ---------- */
.thanks__hero { padding: 36px var(--gutter) 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.checkdot { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); }
.hero__title--thanks { font-size: clamp(42px, 9vw, 64px); line-height: 1.05; }
.hero__title:focus { outline: none; }
.thanks__body { padding: 28px var(--gutter) 8px; }
.thanks__stack { display: flex; flex-direction: column; gap: 16px; }
.thanks__stack > * { max-width: 720px; width: 100%; }
.thanks__stack > .textlink { width: auto; }
.tcards { display: flex; flex-direction: column; gap: 16px; }
.tcard {
  background: #fff; border: 2px solid var(--line); border-radius: 6px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.tcard--cta { border-color: var(--teal); gap: 12px; }
.tcard__label { font-size: 13px; font-weight: 900; letter-spacing: 2px; color: var(--teal); text-transform: uppercase; }
.tcard__title { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 900; }
.tcard--cta .tcard__title { font-size: 22px; line-height: 1.2; }
.tcard__text { color: var(--grey); }
.tcard .btn { width: 100%; text-align: center; }
.plate--thanks { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; }
.plate--thanks .plate__big { font-size: 26px; }
.plate__sub { font-size: 14px; }
.textlink { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.textlink--grey { color: var(--grey); font-size: 14px; font-weight: 400; margin-bottom: 24px; }

.noscript { margin: 24px var(--gutter) 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 6px solid var(--yellow); color: #b9c2c5; }
.site-footer__in {
  padding: 28px var(--gutter) 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
  font-size: 13px; line-height: 1.6;
}
.site-footer a { color: #b9c2c5; }
.site-footer a.accent { color: var(--mint); text-decoration: none; }
.site-footer__brand { margin-bottom: 8px; font-size: 15px; font-weight: 700; color: #fff; }
.site-footer__brand span { font-weight: 400; color: #b9c2c5; }
.site-footer__contact { margin-bottom: 8px; }

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .btn { padding: 0 20px; }
  .hero__cta, .btn--submit { width: 100%; }
  .plate { padding-inline: 18px; }
}

/* Embedded SQUADD booking widget in the confirmation cards */
.tcard__booking { display: block; width: 100%; height: 980px; border: 0; border-radius: 6px; background: #ffffff; }
.tcard__fallback { align-self: flex-start; font-size: 14px; }
@media (min-width: 720px) { .tcard__booking { height: 760px; } }

/* Header call to action: its label follows the fair phase (see landing.js) */
.site-header { position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
.header-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 4px; background: var(--orange); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.header-cta:hover { filter: brightness(1.05); }

/* Stand plate opens the map */
.plate--link { color: var(--ink); text-decoration: none; transition: transform 0.15s ease; }
.plate--link:hover { transform: translateY(-2px); }
.plate__map { margin-top: 6px; font-size: 14px; font-weight: 700; text-decoration: underline; }
.plate__pin { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); }

/* Levitating Lite in the hero, echoing the Levitology display at the stand */
@keyframes levitate { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes levitate-shadow { 0%, 100% { transform: scaleX(1); opacity: 0.3; } 50% { transform: scaleX(0.8); opacity: 0.16; } }
.hero__fig img { animation: levitate 5s ease-in-out infinite; }
.hero__shadow { display: block; width: 60%; max-width: 280px; height: 18px; margin-top: -4px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 70%); animation: levitate-shadow 5s ease-in-out infinite; }

/* Caption under the products: invitation to the levitation display */
.levit { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 560px; padding-top: 14px; border-top: 3px solid var(--yellow); text-align: left; }
.levit__icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--teal); }
.levit__txt { display: flex; flex-direction: column; gap: 2px; }
.levit__txt strong { font-size: 18px; line-height: 1.25; font-weight: 900; color: var(--ink); }
.levit__txt span { font-size: 14px; color: var(--grey); }

@media (prefers-reduced-motion: reduce) {
  .hero__fig img, .hero__shadow { animation: none; }
  .plate--link { transition: none; }
}

/* ---------- "Sì, fluttua davvero" section (#vola): the floating Wheeliot videos ---------- */
.vola { background: #fff; scroll-margin-top: 48px; }
.vola__in {
  padding: clamp(44px, 6vw, 80px) var(--gutter);
  padding-block: clamp(44px, 6cqi, 80px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px;
}
.vola__main { flex: 1 1 520px; min-width: 0; margin: 0; }
.vola__copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.vola__hl { color: var(--teal); }
.vola__lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: #333b3e; max-width: 34em; }
.vola__media { position: relative; border-radius: 10px; overflow: hidden; background: #0c1f22; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.vola__video { display: block; width: 100%; height: auto; }
.vola__cap { margin-top: 14px; display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--grey); }
.vola__cap::before { content: ""; flex: none; width: 22px; height: 2px; margin-top: .7em; background: var(--teal); }
.vola__toggle {
  position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.vola__toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.vola__toggle .vola__ico-play { display: none; }
.vola__toggle[aria-pressed="true"] .vola__ico-pause { display: none; }
.vola__toggle[aria-pressed="true"] .vola__ico-play { display: block; }
.vola__cta { align-self: flex-start; min-height: 54px; }
@media (max-width: 820px) {
  .vola__in { gap: 24px; }
}
@media (max-width: 480px) {
  .vola__cta { width: 100%; }
}

/* Language switch (IT · EN), same on every page; the current language is filled in teal */
.site-header__end { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lang { display: inline-flex; flex-shrink: 0; border: 1.5px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--grey); text-decoration: none; }
.lang a + a { border-left: 1.5px solid var(--line); }
.lang a[aria-current="true"] { background: var(--teal); color: #fff; }
.lang a:not([aria-current]):hover { background: var(--teal-soft); color: var(--teal); }
@media (max-width: 420px) {
  .site-header__in { gap: 10px; }
  .site-header__end { gap: 8px; }
  .logo { width: 84px; }
  .lang a { min-width: 38px; padding: 0 6px; font-size: 12px; }
  .header-cta { padding: 0 10px; font-size: 12px; letter-spacing: 0.3px; }
}

/* ---------- 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: Roboto, "Segoe UI", Helvetica, Arial, sans-serif !important;
}
#iubenda-cs-banner#iubenda-cs-banner .iubenda-cs-content {
  font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif !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(--teal) !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(--teal) !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: #036b74 !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; }
}
