/* ===========================================================
   REVEO.IT — Stylesheet principale
   Riparazione console e controller
   =========================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colori brand */
  --c-primary: #1e2a44;
  --c-primary-dark: #0f1729;
  --c-accent: #00e0b8;
  --c-accent-dark: #00b394;
  --c-accent-alt: #7c5cfc;

  /* Neutri */
  --c-text: #1b2330;
  --c-text-soft: #5a6677;
  --c-border: #e2e7ef;
  --c-bg: #f7f9fc;
  --c-surface: #ffffff;

  /* Stati */
  --c-success: #2bb673;
  --c-error: #e5484d;

  /* Tipografia */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Misure */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 41, .06);
  --shadow: 0 14px 40px rgba(15, 23, 41, .10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 41, .16);
  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--c-primary);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1rem; }
:focus-visible {
  outline: 3px solid var(--c-accent-alt);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--dark {
  background: var(--c-primary-dark);
  color: #cdd6e6;
}
.section--dark h2,
.section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--c-text-soft); font-size: 1.08rem; margin: 0; }
.section--dark .section-head p { color: #9fb0c9; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--c-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  min-height: 48px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--c-accent);
  color: var(--c-primary-dark);
  box-shadow: 0 10px 24px rgba(0, 224, 184, .32);
}
.btn--primary:hover { background: var(--c-accent-dark); box-shadow: 0 14px 30px rgba(0, 224, 184, .4); }
.btn--ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-border);
}
.btn--ghost:hover { border-color: var(--c-primary); background: #fff; }
.btn--light { background: #fff; color: var(--c-primary-dark); }
.btn--light:hover { background: #eef2f8; }
.btn--lg { padding: 17px 34px; font-size: 1.08rem; min-height: 56px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--c-primary);
  letter-spacing: -.02em;
}
.brand__logo {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--c-primary-dark);
  color: var(--c-accent);
}
.brand__logo svg { width: 20px; height: 20px; }
.brand b { color: var(--c-accent-dark); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav__links a {
  font-weight: 500;
  font-size: .98rem;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--c-text);
  transition: background .15s, color .15s;
}
.nav__links a:hover { background: #eaeef5; }
.nav__links a[aria-current="page"] { color: var(--c-accent-dark); font-weight: 600; }
.nav__cta { margin-left: 6px; }
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after { position: absolute; top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(124, 92, 252, .18), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(0, 224, 184, .14), transparent 55%),
    var(--c-primary-dark);
  color: #e7edf7;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
  padding: clamp(48px, 7vw, 92px) 0;
}
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--c-accent); }
.hero__sub {
  font-size: 1.15rem;
  color: #b9c6dd;
  max-width: 48ch;
  margin-bottom: 28px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero__points li {
  display: flex; align-items: center; gap: 8px;
  font-size: .95rem; color: #c9d4e6;
}
.hero__points svg { width: 18px; height: 18px; color: var(--c-accent); flex: none; }
.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.hero__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* --- Carosello hero --- */
.hero-carousel { position: relative; display: flex; flex: 1; overflow: hidden; min-height: 280px; }
.hero-carousel__slide {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
.hero-carousel__slide.active { opacity: 1; }
.hero__badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(15, 23, 41, .82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
  display: flex; align-items: center; gap: 10px;
}
.hero__badge strong { font-family: var(--font-head); color: var(--c-accent); }

/* ---------- Trust bar ---------- */
.trustbar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.trustbar__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 22px 0;
}
.trust {
  display: flex; align-items: center; gap: 12px;
  justify-content: center;
  text-align: left;
}
.trust svg { width: 26px; height: 26px; color: var(--c-accent-dark); flex: none; }
.trust b { font-family: var(--font-head); display: block; font-size: 1rem; color: var(--c-primary); }
.trust span { font-size: .85rem; color: var(--c-text-soft); }

/* ---------- Cards (servizi / scelta) ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.pick {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.pick:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfd8e6; }
.pick__img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #fff; }
.pick__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pick:hover .pick__img img { transform: scale(1.04); }
.pick__tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(15, 23, 41, .85);
  color: #fff; font-size: .76rem; font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.pick__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.pick__body h3 { margin-bottom: 8px; }
.pick__body p { color: var(--c-text-soft); margin-bottom: 16px; }
.pick__list { margin-bottom: 22px; display: grid; gap: 9px; }
.pick__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.pick__list svg { width: 18px; height: 18px; color: var(--c-accent-dark); flex: none; margin-top: 3px; }
.pick__foot { margin-top: auto; }
.pick__link {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--c-accent-dark);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s var(--ease);
}
.pick:hover .pick__link { gap: 12px; }

/* ---------- Prezzo "da X€" (riusato nelle modali) ---------- */
.service__price {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: rgba(0, 224, 184, .12);
  color: var(--c-accent-dark);
  border: 1px solid rgba(0, 224, 184, .35);
  font-family: var(--font-head);
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 16px; font-weight: 600;
}
.service__price b { font-size: 1.3rem; }
.note {
  background: var(--c-bg);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .95rem;
  color: var(--c-text-soft);
}
.note strong { color: var(--c-text); }

/* ---------- Pricing cards ---------- */
.price-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.price-card--featured { border-color: var(--c-accent); box-shadow: 0 16px 40px rgba(0, 224, 184, .18); }
.price-card__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--c-accent); color: var(--c-primary-dark);
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { margin-bottom: 6px; }
.price-card__desc { color: var(--c-text-soft); font-size: .95rem; min-height: 48px; }
.price-card__amount {
  font-family: var(--font-head); font-weight: 700;
  font-size: 2.1rem; color: var(--c-primary);
  margin: 12px 0 4px;
}
.price-card__amount small { font-size: .9rem; color: var(--c-text-soft); font-weight: 500; }
.price-card ul { margin: 16px 0 22px; display: grid; gap: 9px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.price-card li svg { width: 18px; height: 18px; color: var(--c-accent-dark); flex: none; margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
table.compare {
  width: 100%; border-collapse: collapse; background: #fff;
  min-width: 640px; font-size: .95rem;
}
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-border); }
table.compare thead th {
  font-family: var(--font-head); color: #fff; background: var(--c-primary);
  font-size: .92rem; position: sticky; top: 0;
}
table.compare thead th:first-child { background: var(--c-primary-dark); }
table.compare tbody th { font-weight: 600; color: var(--c-primary); background: var(--c-bg); }
table.compare td.best { color: var(--c-accent-dark); font-weight: 600; }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: none; }
.tag-yes { color: var(--c-success); font-weight: 600; }
.tag-no { color: var(--c-text-soft); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.step__num {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--c-primary-dark); color: var(--c-accent);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--c-text-soft); font-size: .94rem; margin: 0; }

/* ---------- Why / features ---------- */
.feature {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 26px;
}
.feature__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(0, 224, 184, .14); color: var(--c-accent);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: #9fb0c9; font-size: .95rem; margin: 0; }

/* ---------- Reviews ---------- */
.review {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.review__stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 12px; }
.review p { font-size: 1rem; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.review__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-primary-dark); color: var(--c-accent);
  font-family: var(--font-head); font-weight: 700;
}
.review__author b { display: block; font-size: .95rem; color: var(--c-primary); }
.review__author span { font-size: .82rem; color: var(--c-text-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  color: var(--c-primary);
}
.faq__q svg { width: 22px; height: 22px; flex: none; transition: transform .25s var(--ease); color: var(--c-accent-dark); }
.faq__q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq__a > div { padding: 0 22px 20px; color: var(--c-text-soft); }

/* ---------- Offerta principale (controller) ---------- */
.offer {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.offer__card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.offer__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: var(--c-primary);
  line-height: 1;
  margin: 6px 0 4px;
}
.offer__price small { font-size: 1rem; color: var(--c-text-soft); font-weight: 500; }
.offer__list { margin: 20px 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.offer__list li { display: flex; gap: 9px; align-items: flex-start; font-size: .95rem; }
.offer__list svg { width: 18px; height: 18px; color: var(--c-accent-dark); flex: none; margin-top: 3px; }
.offer__hint { font-size: .95rem; color: var(--c-text-soft); }
.offer__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }

/* ---------- Carousel controller ---------- */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  background: #fff;
  aspect-ratio: 16 / 11;
}
.carousel__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s var(--ease);
}
.carousel__slide.is-active { opacity: 1; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__label {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(15, 23, 41, .82); backdrop-filter: blur(6px);
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12);
}
.carousel__dots { position: absolute; right: 14px; bottom: 18px; display: flex; gap: 6px; }
.carousel__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background .3s, width .3s; }
.carousel__dots span.is-active { background: var(--c-accent); width: 18px; border-radius: 4px; }

/* ---------- Configuratore riparazione ---------- */
.config { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 52px); align-items: start; }
.config__step { margin-bottom: 26px; }
.config__step:last-child { margin-bottom: 0; }
.config__step-title {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  color: var(--c-primary); margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.config__step-num {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: var(--c-primary-dark); color: var(--c-accent);
  display: grid; place-items: center; font-family: var(--font-head); font-size: .9rem;
}

.choice-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.choice label {
  display: block; padding: 11px 16px; border: 1.5px solid var(--c-border);
  border-radius: 999px; font-weight: 500; font-size: .95rem; cursor: pointer;
  background: var(--c-surface); transition: border-color .18s, background .18s, color .18s;
}
.choice input:checked + label { border-color: var(--c-accent); background: rgba(0, 224, 184, .1); color: var(--c-accent-dark); font-weight: 600; }
.choice input:focus-visible + label { outline: 3px solid var(--c-accent-alt); outline-offset: 2px; }
.choice--info label { padding-right: 46px; }
.choice__info {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%); z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; flex: none; cursor: pointer;
  border: 1.5px solid var(--c-border); background: var(--c-surface); color: var(--c-text-soft);
  font-family: var(--font-head); font-weight: 700; font-style: italic; font-size: .85rem; line-height: 1;
  transition: border-color .15s, color .15s;
}
.choice__info:hover { border-color: var(--c-accent); color: var(--c-accent-dark); }
.choice__info:focus-visible { outline: 3px solid var(--c-accent-alt); outline-offset: 2px; }

.stick-opts { display: grid; gap: 10px; }
.stick-choice { position: relative; }
.stick-choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.stick-choice label {
  display: flex; align-items: center; gap: 14px; padding: 13px 56px 13px 16px;
  border: 1.5px solid var(--c-border); border-radius: var(--radius); cursor: pointer;
  background: var(--c-surface); transition: border-color .18s, background .18s;
}
.stick-choice input:checked + label { border-color: var(--c-accent); background: rgba(0, 224, 184, .07); }
.stick-choice input:focus-visible + label { outline: 3px solid var(--c-accent-alt); outline-offset: 2px; }
.stick-choice__thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--c-border); flex: none; padding: 4px; }
.stick-choice__name { font-family: var(--font-head); font-weight: 600; color: var(--c-primary); display: block; line-height: 1.2; }
.stick-choice__add { font-size: .85rem; color: var(--c-text-soft); }
.stick-choice__add b { color: var(--c-accent-dark); }
.stick-choice__info {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; flex: none; cursor: pointer;
  border: 1.5px solid var(--c-border); background: var(--c-surface); color: var(--c-text-soft);
  font-family: var(--font-head); font-weight: 700; font-style: italic; font-size: 1rem; line-height: 1;
  transition: border-color .15s, color .15s, background .15s;
}
.stick-choice__info:hover { border-color: var(--c-accent); color: var(--c-accent-dark); }
.stick-choice__info:focus-visible { outline: 3px solid var(--c-accent-alt); outline-offset: 2px; }
/* Badge "in primo piano" sulle voci evidenziate */
.opt-badge {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  background: var(--c-accent); color: var(--c-primary-dark);
  font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .02em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}

/* Pillola "i" inline usata nel testo introduttivo */
.info-hint {
  display: inline-grid; place-items: center; width: 20px; height: 20px; vertical-align: -4px;
  border-radius: 50%; border: 1.5px solid currentColor; color: var(--c-text-soft);
  font-family: var(--font-head); font-weight: 700; font-style: italic; font-size: .8rem;
}

/* ---------- Modali informative ---------- */
.modal {
  width: min(540px, calc(100% - 32px)); padding: 0; border: none;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--c-text);
  background: var(--c-surface);
}
.modal::backdrop { background: rgba(15, 23, 41, .5); backdrop-filter: blur(2px); }
.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid var(--c-border);
}
.modal__head h3 { margin: 0; font-size: 1.25rem; }
.modal__close {
  width: 36px; height: 36px; flex: none; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-soft);
  font-size: 1.5rem; line-height: 1; transition: border-color .15s, color .15s;
}
.modal__close:hover { border-color: var(--c-error); color: var(--c-error); }
.modal__body { padding: 24px; }
.modal__body p { color: var(--c-text-soft); }
.modal__media {
  aspect-ratio: 16 / 10; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); margin-bottom: 18px; overflow: hidden;
}
.modal__media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.modal__list { display: grid; gap: 8px; margin: 0 0 16px; }
.modal__list li { position: relative; padding-left: 26px; color: var(--c-text-soft); font-size: .95rem; }
.modal__list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--c-accent);
}

.config__preview { position: sticky; top: 90px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.preview__img { aspect-ratio: 16 / 9; background: #fff; border-bottom: 1px solid var(--c-border); }
.preview__img img { width: 100%; height: 100%; object-fit: cover; }
.preview__body { padding: 26px; }
.preview__combo { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.preview__combo img { width: 42px; height: 42px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--c-border); padding: 4px; flex: none; }
.preview__combo span { font-size: .9rem; color: var(--c-text-soft); }
.preview__title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--c-primary); margin: 10px 0 2px; }
.preview__price { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--c-primary); line-height: 1; margin: 4px 0; }
.preview__price small { font-size: .9rem; color: var(--c-text-soft); font-weight: 500; }
.preview__free {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  color: var(--c-accent-dark); line-height: 1; margin: 8px 0 2px;
}
.preview__free svg { width: 22px; height: 22px; flex: none; }
.preview__incl { display: grid; gap: 7px; margin: 16px 0; }
.preview__incl li { display: flex; gap: 9px; font-size: .9rem; color: var(--c-text-soft); }
.preview__incl svg { width: 16px; height: 16px; color: var(--c-accent-dark); flex: none; margin-top: 3px; }
.preview__desc { font-size: .92rem; color: var(--c-text-soft); margin-bottom: 18px; min-height: 38px; }
.config__preview .btn { width: 100%; }

/* ---------- Carrello (icona header + articoli) ---------- */
/* CTA "Effettua una richiesta" nell'header (sovrascrive lo stile generico dei link nav) */
.nav__cta { margin-left: 6px; }
.nav__cta a.btn { padding: 10px 18px; min-height: 0; color: var(--c-primary-dark); font-size: .95rem; }
.nav__cta a.btn:hover { background: var(--c-accent-dark); }

/* Bottone WhatsApp */
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { background: #1ebe5b; color: #fff; }

.cart-item {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
}
.cart-item__img { width: 90px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--c-border); background: #fff; }
.cart-item__info h3 { font-size: 1.05rem; margin: 0 0 2px; }
.cart-item__info span { font-size: .85rem; color: var(--c-text-soft); }
.cart-item__price { font-family: var(--font-head); font-weight: 700; color: var(--c-primary); font-size: 1.1rem; }
.cart-item__remove {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--c-border);
  background: #fff; color: var(--c-text-soft); font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.cart-item__remove:hover { border-color: var(--c-error); color: var(--c-error); background: #fef2f2; }
.link-muted { background: none; border: none; color: var(--c-text-soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.link-muted:hover { color: var(--c-error); }

/* ---------- Checkout / form ---------- */
.checkout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 48px); align-items: start; }
.summary {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  position: sticky; top: 90px;
}
.summary__media { aspect-ratio: 16 / 9; background: #fff; border-bottom: 1px solid var(--c-border); }
.summary__media img { width: 100%; height: 100%; object-fit: cover; }
.summary__body { padding: 24px; }
.summary__row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--c-border); font-size: .95rem; }
.summary__row span:last-child { font-family: var(--font-head); font-weight: 600; color: var(--c-primary); text-align: right; }
.summary__row--muted span { color: var(--c-text-soft); font-weight: 500; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 4px; }
.summary__total b { font-family: var(--font-head); font-size: 1.8rem; color: var(--c-primary); }
.summary__note { background: var(--c-bg); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .85rem; color: var(--c-text-soft); margin-top: 16px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; color: var(--c-primary); }
.field input, .field textarea {
  width: 100%; padding: 6px 7px; border: 1.5px solid var(--c-border);
  border-radius: 10px; font: inherit; background: #fff; color: var(--c-text);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(0, 224, 184, .15); }
.field textarea { min-height: 110px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--c-text-soft); margin: 8px 0 20px; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.check a { color: var(--c-accent-dark); font-weight: 600; }

.alert { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; font-size: .95rem; }
.alert--warn { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.alert--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert--info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }

/* ---------- Scelta corriere ---------- */
.ship-options { display: grid; gap: 12px; margin: 6px 0 4px; }
.ship-option {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 14px 16px; border: 1.5px solid var(--c-border); border-radius: 12px;
  transition: border-color .15s, background .15s;
}
.ship-option:hover { border-color: var(--c-accent); }
.ship-option input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--c-accent-dark); }
.ship-option:has(input:checked) { border-color: var(--c-accent-dark); background: #f0fdfa; }
.ship-option__body { flex: 1; }
.ship-option__title { font-weight: 600; color: var(--c-primary); }
.ship-option__desc { font-size: .85rem; color: var(--c-text-soft); margin-top: 2px; }
.ship-option__price { font-weight: 600; color: var(--c-primary); white-space: nowrap; }

/* ---------- Pagine legali (prose) ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5em; }
.prose p, .prose li { color: var(--c-text-soft); }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--c-text); }
.legal-note {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent-alt); padding: 14px 18px;
  border-radius: 8px; font-size: .88rem; margin-bottom: 28px; color: var(--c-text-soft);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(124, 92, 252, .25), transparent 60%),
    var(--c-primary-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c6dd; max-width: 52ch; margin: 0 auto 26px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (interne) ---------- */
.page-hero {
  background:
    radial-gradient(700px 360px at 90% -20%, rgba(0, 224, 184, .16), transparent 60%),
    var(--c-primary-dark);
  color: #e7edf7;
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 80px);
}
.breadcrumb { display: flex; gap: 8px; font-size: .88rem; color: #8fa0bb; margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span,
.breadcrumb [aria-current] { color: #cdd6e6; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero__lead { color: #b9c6dd; font-size: 1.12rem; max-width: 60ch; }
.page-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #d6e0f0; font-size: .88rem;
  padding: 7px 14px; border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-primary-dark);
  color: #9fb0c9;
  padding: clamp(48px, 6vw, 72px) 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer__grid h4 {
  color: #fff; font-size: .95rem; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer__grid a { display: block; padding: 5px 0; color: #9fb0c9; transition: color .15s; }
.footer__grid a:hover { color: var(--c-accent); }
.footer__about .brand { color: #fff; margin-bottom: 14px; }
.footer__about p { font-size: .95rem; max-width: 36ch; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: .94rem; }
.footer__contact svg { width: 18px; height: 18px; color: var(--c-accent); flex: none; margin-top: 3px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .85rem;
}

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

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 540px; }
  .offer { grid-template-columns: 1fr; }
  .carousel { order: -1; max-width: 540px; margin-inline: auto; width: 100%; }
  .config { grid-template-columns: 1fr; }
  .config__preview { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .cart-item { grid-template-columns: auto 1fr auto; grid-template-areas: "img info remove" "img price price"; row-gap: 6px; }
  .cart-item__img { grid-area: img; }
  .cart-item__info { grid-area: info; }
  .cart-item__price { grid-area: price; }
  .cart-item__remove { grid-area: remove; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trustbar__row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: calc(var(--header-h) + 1px) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    /* ombra solo verso il basso: con uno spread negativo non sborda sopra l'header */
    box-shadow: 0 16px 24px -10px rgba(15, 23, 41, .22);
    padding: 14px 18px 22px;
    margin: 0;
    /* nascondi sempre del tutto: 100% dell'altezza del pannello + l'header, così non resta visibile in alto anche quando il menu è corto */
    transform: translateY(calc(-100% - var(--header-h) - 8px));
    transition: transform .3s var(--ease);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav__cta { margin: 8px 0 0; }
  .nav__cta .btn { width: 100%; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .offer__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

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

/* Banner consenso cookie */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 880px; margin: 0 auto; padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px;
  box-shadow: 0 14px 44px rgba(15, 23, 41, .22);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { margin: 0; flex: 1 1 320px; font-size: .9rem; line-height: 1.5; color: var(--c-text-soft); }
.cookie-banner__text a { color: var(--c-accent-dark); }
.cookie-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-banner__actions .btn { padding: 10px 20px; }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner__actions { justify-content: center; }
}
