/* Pubbly LED · landing · colori misurati sul design approvato (step 5), sito vivo (5-bis), copy (step 6) */

@font-face {
  font-family: "Inter";
  src: url("../font/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colori misurati (confronta-design.py --colori e campioni sul design) */
  --accent: #0298B9;        /* bottoni, parola accesa, cerchi dei passaggi */
  --logo: #0091B3;          /* turchese del logo */
  --ink: #0C1922;           /* titoli e testo forte */
  --muted: #545D69;         /* testo grigio */
  --soft: #E8EFF3;          /* sezioni prodotti */
  --aqua: #DDF5F9;          /* banda azzurra */
  --contact: #EEF3F6;       /* sezione contatti */
  --dark: #13232A;          /* sezione scura e footer */
  --white: #FFFFFF;
  /* trasparenze e stati (non sono colori pieni) */
  --line: rgba(12, 25, 34, .12);
  --line-strong: rgba(12, 25, 34, .22);
  --line-dark: rgba(255, 255, 255, .16);
  --text-dark: rgba(255, 255, 255, .74);
  --accent-hover: #007E9B;
  --focus-outline: #0C1922;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1280px;
  --gutter: 40px;
  --r-btn: 6px;
  --r-card: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ─── base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "calt" 0; /* «114x114» resta scritto così, non «114×114» */
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus-outline); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible, .site-footer :focus-visible { outline-color: #FFFFFF; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--dark); color: var(--white); padding: 12px 18px; border-radius: var(--r-btn);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--max)); margin-inline: auto; }
.ico { width: 24px; height: 24px; flex-shrink: 0; display: block; }

/* ─── titoli ─── */
h1, h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; color: var(--ink); }
h2 { font-size: clamp(30px, 3.5vw, 50px); text-wrap: balance; }
h3 { font-weight: 720; letter-spacing: -0.02em; line-height: 1.2; }
p, li, figcaption, .step__t { text-wrap: pretty; }

.kicker {
  font-size: 14px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 20px;
}
.eyebrow {
  display: flex; align-items: center; gap: 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::after { content: ""; width: 80px; height: 1.5px; background: var(--accent); }
.eyebrow--dark { color: #39D4E7; }
.eyebrow--dark::after { background: #39D4E7; }
.section__sub { font-size: 20px; color: var(--muted); margin-top: 14px; max-width: 720px; }

/* ─── bottoni e link ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 26px;
  background: var(--accent); color: var(--white);
  border: 1px solid var(--accent); border-radius: var(--r-btn);
  font-size: 16.5px; font-weight: 620; line-height: 1.2; letter-spacing: -0.005em; text-align: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn .ico { width: 18px; height: 18px; stroke-width: 2; transition: transform .2s var(--ease); }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 8px 20px -10px rgba(2, 152, 185, .7); }
.btn:hover .ico--arrow-up-right { transform: translate(2px, -2px); }
.btn:hover .ico--arrow-down { transform: translateY(2px); }
.btn:hover .ico--send { transform: translateX(2px); }
.btn--outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn--outline:hover { background: var(--aqua); color: var(--accent-hover); box-shadow: none; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 16.5px; font-weight: 600;
  padding-bottom: 4px; border-bottom: 1.5px solid currentColor;
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow .ico { width: 16px; height: 16px; stroke-width: 2; }
.link-arrow:hover { color: var(--accent-hover); gap: 11px; }

/* ─── header ─── */
.header-slot { position: relative; z-index: 50; }
.site-header {
  position: relative; z-index: 50;
  background: var(--white);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(12, 25, 34, .45); }
.header__in { display: flex; align-items: center; gap: 28px; height: 150px; }
.brand { flex-shrink: 0; display: block; }
.brand img { width: 132px; height: 132px; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 28px; }
.nav__list a:not(.btn) {
  position: relative; font-size: 16px; font-weight: 500; color: var(--ink); padding: 8px 0; white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav__list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__list a:not(.btn):hover { color: var(--accent); }
.nav__list a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { display: none; }
.btn--header { margin-left: 14px; padding-inline: 20px; white-space: nowrap; }
.menu-toggle { display: none; }

/* ─── hero ─── */
.hero { padding-top: 4px; overflow-x: clip; }
@supports not (overflow-x: clip) { .hero { overflow-x: hidden; } }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(38px, 4.4vw, 63px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 820; }
.hero h1 em { font-style: normal; color: var(--accent); }
.h1-l { display: block; text-wrap: balance; }
.hero__intro { border-left: 1.5px solid var(--accent); padding: 22px 0 22px 44px; margin-top: 30px; }
.hero__lead { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 520px; }
.hero__lead + .hero__lead { margin-top: 12px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 34px; margin-top: 28px; }

.hero__photo {
  position: relative;
  width: min(calc(100% - 80px), 1360px);
  margin: 46px auto 0;
}
.hero__photo img { width: 100%; aspect-ratio: 4.6 / 1; object-fit: cover; object-position: 50% 46%; background: var(--dark); }
.hero__photo figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--white); color: var(--ink);
  font-size: 13px; font-weight: 500; padding: 7px 16px 6px;
}
.hero__corner {
  position: absolute; right: -26px; top: -30px; width: 98px; height: 102px;
  color: var(--accent); pointer-events: none;
}

/* ─── sezioni ─── */
.section { padding: 76px 0; }
.section--soft { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-cta { display: flex; justify-content: center; margin-top: 34px; }

/* 01 prezzi: le schede prodotto in griglia */
.section--prodotti { padding-top: 64px; padding-bottom: 64px; margin-top: 64px; }
.ship { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; font-size: 16px; color: var(--ink); line-height: 1.35; max-width: 300px; }
.ship .ico { width: 50px; height: 50px; color: var(--accent); stroke-width: 1.4; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-card); padding: 20px 20px 22px;
  box-shadow: 0 1px 2px rgba(12, 25, 34, .05);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.product__photo { display: flex; justify-content: center; align-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; }
.product__photo img { max-height: 100%; width: auto; object-fit: contain; }
.product__photo--cover img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.product__body { margin-top: 18px; }
.product h3 { font-size: 20px; font-weight: 720; letter-spacing: -0.02em; }
.product h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.product h3 a:focus-visible { outline: none; }
.product h3 a:focus-visible::after { outline: 2px solid var(--focus-outline); outline-offset: 3px; }
.product__price { font-size: 22px; font-weight: 760; letter-spacing: -0.02em; margin-top: 6px; color: var(--ink); }
.badge {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  font-size: 13px; font-weight: 620; color: var(--accent-hover);
  background: var(--aqua); padding: 5px 11px 5px 9px; border-radius: 999px;
}
.badge .ico { width: 16px; height: 16px; stroke-width: 1.8; }
.product--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 30px; padding: 20px 30px 20px 20px; }
.product--wide .product__photo { aspect-ratio: auto; height: 300px; }
.product--wide .product__body { margin-top: 0; }
.product--wide h3 { font-size: 26px; }
.product--wide .product__price { font-size: 26px; }

/* 02 com'è fatta la croce */
.section--croce { padding-top: 72px; padding-bottom: 72px; }
.croce__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 52px; align-items: center; margin-top: 34px; }
.features { border-top: 1px solid var(--line-strong); }
.features li { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-strong); font-size: 17.5px; font-weight: 560; line-height: 1.35; }
.features__ico { width: 34px !important; height: 34px !important; color: var(--accent); stroke-width: 1.5; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-pair img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
/* croce di fronte: fondo della foto portato a bianco puro, si vede intera e si fonde con la sezione */
.photo-pair img.pos-intera { object-fit: contain; background: var(--white); }
.photo-pair .gallery__media:has(.pos-intera) { background: var(--white); }

/* 03 insegna Tabacchi: la scheda bianca orizzontale */
.section--tabacchi { padding-top: 64px; padding-bottom: 72px; }
.feature-card {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 44px; align-items: center;
  background: var(--white); border-radius: var(--r-card); padding: 34px 48px 34px 30px;
  box-shadow: 0 1px 2px rgba(12, 25, 34, .05);
}
.feature-card__photo { display: flex; justify-content: center; align-items: center; height: 430px; }
.feature-card__photo img { max-height: 100%; width: auto; object-fit: contain; }
.feature-card h2 { font-size: clamp(28px, 3vw, 44px); }
.checks { margin: 22px 0 30px; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 17.5px; }
.checks .ico { width: 20px; height: 20px; color: var(--accent); stroke-width: 2.4; }

/* 04 come si ordina: sezione scura coi quattro passaggi */
.section--dark { position: relative; background: var(--dark); color: var(--white); overflow: hidden; padding-top: 62px; padding-bottom: 62px; }
.section--dark h2 { color: var(--white); }
/* la matrice sta sopra la linea dei passaggi, mai sopra un testo: solo le prime 4 righe di puntini */
.led-matrix {
  position: absolute; right: -150px; top: 22px; width: 400px; height: 140px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.led-matrix circle { opacity: .95; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin: 40px 0 38px; }
.steps::before {
  content: ""; position: absolute; left: 26px; top: 25px; width: 75%; height: 2px; background: var(--accent);
}
.step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.step__n {
  position: relative; z-index: 1; flex-shrink: 0;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-size: 17px; font-weight: 600;
  box-shadow: 0 0 0 6px var(--dark);
}
.step__t { font-size: 17px; font-weight: 500; line-height: 1.45; color: rgba(255, 255, 255, .92); max-width: 280px; }

/* 05 su misura */
.section--su-misura { padding-top: 72px; padding-bottom: 72px; }
.solutions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; border-top: 1px solid var(--line-strong); }
.solutions li { border-bottom: 1px solid var(--line-strong); }
.solutions li:nth-child(even) { border-left: 1px solid var(--line-strong); }
.solutions a {
  display: flex; align-items: center; gap: 18px; height: 100%;
  padding: 18px 28px; font-size: 18px; font-weight: 620; letter-spacing: -0.01em; line-height: 1.3;
  transition: color .2s var(--ease);
}
.solutions li:nth-child(odd) a { padding-left: 0; }
.solutions__ico { width: 46px !important; height: 46px !important; color: var(--accent); stroke-width: 1.4; transition: transform .3s var(--ease); }
.solutions a span { flex: 1; }
.solutions__arrow { width: 20px !important; height: 20px !important; color: var(--accent); stroke-width: 2; transition: transform .25s var(--ease); }
.solutions a:hover { color: var(--accent); }
.solutions a:hover .solutions__arrow { transform: translateX(5px); }
.solutions a:hover .solutions__ico { transform: translateY(-2px); }
.su-misura__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 52px; align-items: center; margin-top: 44px; }
.su-misura__text p { font-size: 20px; line-height: 1.5; color: var(--ink); max-width: 480px; }
.su-misura__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 26px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.trio img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.trio img.pos-cono { object-position: 50% 32%; }

/* 06 lavori realizzati */
.section--lavori { padding-top: 64px; padding-bottom: 72px; }
.section--lavori .section-head { margin-bottom: 30px; }
.gallery-wrap { width: min(calc(100% - 2 * var(--gutter)), var(--max)); margin-inline: auto; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 22px; }
.gallery__item { min-width: 0; }
.gallery__media { display: block; border-radius: 6px; overflow: hidden; background: var(--soft); }
.gallery__item img { width: 100%; aspect-ratio: 1.8 / 1; object-fit: cover; }
.gallery__item img.pos-andretta { object-position: 26% 48%; }
.gallery__item img.pos-totem { object-position: 50% 40%; }
.gallery__item img.pos-seven { object-position: 50% 55%; }
.gallery__item figcaption { font-size: 15.5px; color: var(--muted); margin-top: 10px; line-height: 1.35; }

/* chi siamo: la banda azzurra */
.b2b { background: var(--aqua); padding: 36px 0; }
.b2b__in { display: flex; align-items: center; gap: 34px; padding-inline: 30px; }
.b2b__photo { flex-shrink: 0; width: 120px; height: 120px; border-radius: var(--r-card); overflow: hidden; background: var(--white); }
.b2b__photo img { width: 100%; height: 100%; object-fit: cover; }
.b2b__text { flex: 1; }
.b2b h2 { font-size: 31px; letter-spacing: -0.03em; line-height: 1.15; font-weight: 760; }
.b2b p { font-size: 17.5px; color: var(--ink); margin-top: 6px; opacity: .85; max-width: 640px; }
.b2b__btn { min-width: 240px; }

/* 07 domande frequenti */
.section--faq { padding-top: 56px; padding-bottom: 60px; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 60px; align-items: start; }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__q { font-size: inherit; font-weight: inherit; letter-spacing: 0; }
.faq__q button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 4px 16px 18px; text-align: left; font-size: 18.5px; font-weight: 500; line-height: 1.35;
  transition: color .2s var(--ease);
}
.faq__q button:hover { color: var(--accent); }
.faq__plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__plus::before, .faq__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 1.6px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .3s var(--ease);
}
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q button[aria-expanded="true"] .faq__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 40px 18px 18px; font-size: 16.5px; color: var(--muted); }
.faq__a a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* 08 contatti */
.section--contact { background: var(--contact); padding-top: 56px; padding-bottom: 64px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 44px; align-items: start; }
.contact__intro { padding-top: 6px; }
.contact__intro .section__sub { font-size: 19px; }
.contact__name { margin-top: 28px; font-size: 17px; font-weight: 750; letter-spacing: .04em; }
.contact__line { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 17.5px; color: var(--ink); }
.contact__line .ico { width: 26px; height: 26px; color: var(--accent); }
.contact__line .ico--pin { fill: var(--accent); stroke: var(--white); stroke-width: 1.4; width: 30px; height: 30px; }
.contact__line a { border-bottom: 1px solid var(--line-strong); transition: color .2s var(--ease), border-color .2s var(--ease); }
.contact__line a:hover { color: var(--accent); border-color: var(--accent); }
.contact__wa { margin-top: 30px; }

.form {
  background: var(--white); border-radius: var(--r-card); padding: 26px 28px 24px;
  box-shadow: 0 1px 2px rgba(12, 25, 34, .04);
}
.form__title { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { position: relative; margin-bottom: 12px; }
.field input, .field textarea {
  display: block; width: 100%; min-height: 48px;
  border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--white);
  padding: 12px 16px; font-size: 16px; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus,
.field textarea.is-prefilled {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(2, 152, 185, .18);
}
.field.is-error input, .field.is-error textarea { border-color: #B3261E; }
.field__err { font-size: 13px; color: #B3261E; margin-top: 6px; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.field--check { margin-bottom: 0; }
.check { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.form__send { min-width: 260px; }

/* ─── footer ─── */
.site-footer { background: var(--dark); color: var(--text-dark); padding: 46px 0 24px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: 44px; align-items: start; }
.footer__logo { display: block; background: var(--white); padding: 12px; width: 174px; }
.footer__logo img { width: 150px; height: 150px; }
.footer__brand { font-size: 15.5px; line-height: 1.55; }
.footer__name { font-size: 20px; font-weight: 700; color: var(--white); letter-spacing: -0.01em; margin: 18px 0 4px; }
.footer__brand p:last-child { max-width: 300px; }
.footer__title { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer__col li + li { margin-top: 8px; }
.footer__col a, .footer__bottom a { transition: color .2s var(--ease); }
.footer__col a { font-size: 15.5px; }
.footer__col a:hover, .footer__bottom a:hover { color: var(--white); }
.footer__bottom {
  display: grid; gap: 8px;
  border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 20px; font-size: 13.5px;
}
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.credit a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }

/* ─── banner cookie (una riga) ─── */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 8px 16px; background: var(--white); border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.35; color: var(--muted);
  box-shadow: 0 -8px 24px -18px rgba(12, 25, 34, .4);
}
.cookie-bar p { display: flex; gap: 6px; min-width: 0; white-space: nowrap; }
.cookie-bar__txt { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cookie-bar a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; flex-shrink: 0; }
.cookie-bar__x {
  flex-shrink: 0; padding: 6px 16px; border-radius: 999px; background: var(--ink); color: var(--white);
  font-size: 13px; font-weight: 650; line-height: 1.2; transition: background-color .2s var(--ease);
}
.cookie-bar__x:hover { background: var(--accent); }

/* ─── entrate morbide (non spostano l'impaginazione) ─── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .products .reveal:nth-child(3n+2), .js .features .reveal:nth-child(2), .js .solutions .reveal:nth-child(2), .js .gallery .reveal:nth-child(4n+2), .js .trio .reveal:nth-child(2), .js .photo-pair .reveal:nth-child(2) { transition-delay: .08s; }
.js .products .reveal:nth-child(3n+3), .js .features .reveal:nth-child(3), .js .solutions .reveal:nth-child(3), .js .gallery .reveal:nth-child(4n+3), .js .trio .reveal:nth-child(3) { transition-delay: .16s; }
.js .features .reveal:nth-child(4), .js .solutions .reveal:nth-child(4), .js .gallery .reveal:nth-child(4n+4) { transition-delay: .24s; }
.js .features .reveal:nth-child(5) { transition-delay: .32s; }
.js .features .reveal:nth-child(6) { transition-delay: .4s; }

/* ─── pagine semplici (privacy, 404) ─── */
.page { padding: 56px 0 80px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 18px; }
.page h2 { font-size: 26px; margin: 40px 0 12px; letter-spacing: -0.025em; }
.page p, .page li { color: var(--muted); font-size: 16px; }
.page p + p { margin-top: 12px; }
.page ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.page ul + p { margin-top: 12px; }
.page li + li { margin-top: 6px; }
.page a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.page .btn { margin-top: 28px; }
.page__meta { font-size: 14px; }
.page__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 28px; }
.page__actions .btn { margin-top: 0; }

/* ─── schermi medi ─── */
@media (max-width: 1240px) {
  html { scroll-padding-top: 104px; }
  .header-slot { position: sticky; top: 0; }
  .header__in { height: 104px; gap: 14px; }
  .brand img { width: 88px; height: 88px; }
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .btn--header { margin-left: auto; }
}

@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .hero__intro { padding-left: 32px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product--wide { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card { padding: 28px; gap: 28px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

/* ─── telefono ─── */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 96px; }

  .header__in { height: 88px; gap: 12px; }
  .brand img { width: 76px; height: 76px; }
  .btn--header { min-height: 44px; padding: 10px 14px; font-size: 14.5px; gap: 8px; }
  .btn--header .ico { width: 17px; height: 17px; }

  h2 { font-size: min(8.2vw, 32px); line-height: 1.08; }
  .eyebrow { font-size: 11.5px; gap: 14px; margin-bottom: 12px; }
  .eyebrow::after { width: 56px; }
  .section { padding: 44px 0; }
  .section__sub { font-size: 16.5px; margin-top: 10px; }
  .btn { font-size: 16px; }
  .link-arrow { font-size: 16px; }

  .hero { padding-top: 6px; }
  .hero__grid { grid-template-columns: 1fr; gap: 14px; }
  .kicker { font-size: 12.5px; letter-spacing: .1em; margin-bottom: 10px; }
  .hero h1 { font-size: min(9.4vw, 38px); line-height: 1.06; letter-spacing: -0.035em; }
  .hero__intro { border-left: 0; padding: 0; margin-top: 0; }
  .hero__lead { font-size: 16px; line-height: 1.45; color: var(--ink); opacity: .82; }
  .hero__lead + .hero__lead { margin-top: 8px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 20px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link-arrow { align-self: center; }
  .hero__photo { width: calc(100% - 24px); margin-top: 30px; }
  .hero__photo img { aspect-ratio: 2.42 / 1; object-position: 50% 46%; }
  .hero__photo figcaption { position: static; padding: 9px 0 0 4px; font-size: 13px; background: none; }
  .hero__corner { right: -10px; top: -14px; width: 48px; height: 50px; }

  .section--prodotti { margin-top: 36px; padding-top: 38px; padding-bottom: 40px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ship { gap: 12px; margin: 0; font-size: 14.5px; }
  .ship .ico { width: 36px; height: 36px; }
  .products { gap: 12px; margin-top: 22px; }
  .product { padding: 10px 10px 14px; }
  .product__photo { aspect-ratio: 1 / 1; }
  .product__body { margin-top: 12px; padding-inline: 2px; }
  .product h3 { font-size: 15.5px; line-height: 1.25; }
  .product__price { font-size: 17px; margin-top: 4px; }
  .badge { font-size: 11.5px; padding: 4px 9px; gap: 5px; margin-top: 8px; white-space: nowrap; }
  .badge .ico { display: none; }
  .product--wide .badge .ico { display: block; width: 13px; height: 13px; }
  .product--wide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 14px; padding: 10px 14px 10px 10px; }
  .product--wide .product__photo { height: 170px; aspect-ratio: auto; }
  .product--wide h3 { font-size: 17px; }
  .product--wide .product__price { font-size: 19px; }
  .section-cta { margin-top: 22px; }
  .section-cta .btn { width: 100%; }

  .section--croce { padding-top: 44px; padding-bottom: 44px; }
  .croce__grid { grid-template-columns: 1fr; gap: 22px; margin-top: 22px; }
  .features li { gap: 14px; padding: 11px 0; font-size: 15.5px; }
  .features__ico { width: 28px !important; height: 28px !important; }
  .photo-pair { gap: 10px; }

  .section--tabacchi { padding-top: 40px; padding-bottom: 44px; }
  .feature-card { grid-template-columns: 1fr; gap: 18px; padding: 18px 16px 22px; }
  .feature-card__photo { height: 250px; }
  .feature-card h2 { font-size: min(7.6vw, 30px); }
  .checks { margin: 14px 0 22px; }
  .checks li { font-size: 15.5px; padding: 5px 0; }
  .feature-card .btn { width: 100%; }

  .section--dark { padding-top: 40px; padding-bottom: 40px; }
  .led-matrix { right: -120px; top: 16px; width: 240px; height: 84px; -webkit-mask-image: none; mask-image: none; opacity: .9; }
  .steps { grid-template-columns: 1fr; gap: 18px; margin: 26px 0 28px; }
  .steps::before { left: 23px; top: 24px; width: 2px; height: calc(100% - 48px); }
  .step { flex-direction: row; align-items: flex-start; gap: 18px; }
  .step__n { width: 46px; height: 46px; box-shadow: none; }
  .step__t { padding-top: 11px; font-size: 15.5px; max-width: none; }
  .section--dark .btn { width: 100%; }

  .section--su-misura { padding-top: 44px; padding-bottom: 44px; }
  .solutions { grid-template-columns: 1fr; margin-top: 24px; }
  .solutions li:nth-child(even) { border-left: 0; }
  .solutions a, .solutions li:nth-child(odd) a { padding: 13px 2px; gap: 16px; font-size: 16px; }
  .solutions__ico { width: 32px !important; height: 32px !important; }
  .su-misura__foot { grid-template-columns: 1fr; gap: 22px; margin-top: 26px; }
  .su-misura__text p { font-size: 16.5px; }
  .su-misura__actions { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 18px; }
  .su-misura__actions .link-arrow { align-self: center; }
  .trio { gap: 8px; }

  .section--lavori { padding-top: 40px; padding-bottom: 44px; }
  .section--lavori .section-head { margin-bottom: 22px; }
  .gallery-wrap { width: 100%; }
  .gallery {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    padding: 0 20px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item { flex: 0 0 82%; scroll-snap-align: start; }
  .gallery__item figcaption { font-size: 14px; color: var(--ink); }

  .b2b { padding: 26px 0 28px; }
  .b2b__in { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px 16px; align-items: center; padding-inline: 0; }
  .b2b__photo { width: 72px; height: 72px; }
  .b2b__text { display: contents; }
  .b2b h2 { font-size: 24px; grid-column: 2; }
  .b2b p { font-size: 15px; margin-top: 0; grid-column: 1 / -1; }
  .b2b__btn { grid-column: 1 / -1; width: 100%; min-width: 0; margin-top: 8px; font-size: 16px; }

  .section--faq { padding-top: 40px; padding-bottom: 36px; }
  .faq__grid { grid-template-columns: 1fr; gap: 18px; }
  .faq__q button { padding: 14px 2px; font-size: 16px; }
  .faq__a p { padding: 0 30px 16px 2px; font-size: 15.5px; }

  .section--contact { padding-top: 40px; padding-bottom: 36px; }
  .contact__grid { grid-template-columns: 1fr; gap: 24px; }
  .contact__name { margin-top: 20px; font-size: 15.5px; }
  .contact__line { margin-top: 10px; font-size: 15.5px; align-items: flex-start; }
  .contact__line .ico { margin-top: -2px; }
  .contact__wa { width: 100%; margin-top: 22px; }
  .form { padding: 18px 14px; }
  .form__title { font-size: 19px; margin-bottom: 14px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .field input { min-height: 46px; }
  .form__foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .form__send { width: 100%; min-width: 0; min-height: 50px; font-size: 16px; }

  .site-footer { padding: 32px 0 72px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .footer__brand { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 0 18px; align-items: center; font-size: 14.5px; }
  .footer__logo { grid-row: span 2; width: 116px; padding: 8px; }
  .footer__logo img { width: 100px; height: 100px; }
  .footer__name { font-size: 17px; margin: 0 0 4px; align-self: end; }
  .footer__brand p:last-child { align-self: start; }
  .footer__title { font-size: 16px; margin-bottom: 10px; }
  .footer__col a { font-size: 15px; }
  .footer__bottom { margin-top: 26px; padding-top: 16px; font-size: 12.5px; }

  .cookie-bar { padding: 7px 10px 7px 14px; font-size: 12.5px; gap: 10px; }
  .cookie-bar__x { padding: 6px 14px; }

  .page { padding: 34px 0 60px; }
}

/* menu da telefono e tablet */
@media (max-width: 1240px) {
  .menu-toggle {
    width: 46px; height: 46px; place-items: center; border-radius: var(--r-btn); color: var(--ink);
    transition: background-color .2s var(--ease);
  }
  .menu-toggle:hover { background: var(--soft); }
  .menu-toggle .ico { width: 30px; height: 30px; stroke-width: 1.8; }
  .menu-toggle__close { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
  .nav {
    display: block; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(12, 25, 34, .55);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 22px; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a:not(.btn) { display: block; padding: 14px 2px; font-size: 18px; font-weight: 600; }
  .nav__list a:not(.btn)::after { display: none; }
  .nav__cta { display: block; border-bottom: 0 !important; padding-top: 18px; }
}
@media (max-width: 400px) {
  .btn--header .ico { display: none; }
}

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

/* ═════════ STEP 5-bis · il sito vivo ═════════
   Pubbly LED vende luce: il movimento racconta un'insegna che si accende.
   Solo opacity, transform, clip-path e colori: niente sposta l'impaginazione. */

/* tocco: risposta immediata al dito */
a, button, .product, .gallery__item { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn:active { transform: translateY(1px) scale(.985); }
.solutions a:active, .faq__q button:active { opacity: .7; }

/* intestazione compatta e fissa da computer, scorrendo */
@media (min-width: 1241px) {
  html { scroll-padding-top: 92px; }
  .header-slot { height: 150px; }
  .site-header.is-fixed {
    position: fixed; top: 0; left: 0; right: 0;
    transform: translateY(-105%);
    box-shadow: 0 1px 0 var(--line), 0 12px 30px -22px rgba(12, 25, 34, .45);
    transition: transform .42s var(--ease);
  }
  .site-header.is-fixed.is-shown { transform: none; }
  .site-header.is-fixed .header__in { height: 76px; }
  .site-header.is-fixed .brand img { width: 60px; height: 60px; }
  .site-header.is-fixed .btn--header { min-height: 44px; padding: 10px 18px; font-size: 15px; }
}

/* galleria da telefono: il segno di dove sei */
.gallery-progress { display: none; }
@media (max-width: 720px) {
  .gallery-progress { display: block; position: relative; height: 3px; margin: 12px 20px 0; border-radius: 3px; background: var(--line); overflow: hidden; }
  .gallery-progress__bar {
    position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 30%);
    background: var(--accent); border-radius: 3px; transform: translateX(var(--x, 0px));
    transition: width .3s var(--ease);
  }
}

@media (prefers-reduced-motion: no-preference) {

  @keyframes sale { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes appare { from { opacity: 0; } to { opacity: 1; } }
  @keyframes svela { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes avvicina { from { transform: scale(1.07); } to { transform: none; } }
  @keyframes disegna { to { stroke-dashoffset: 0; } }
  /* la parola accesa si accende come un'insegna: due battiti, poi luce piena */
  @keyframes accendi {
    0%   { color: #B9C3C9; text-shadow: none; }
    10%  { color: #0298B9; text-shadow: 0 0 22px rgba(2, 152, 185, .55); }
    16%  { color: #B9C3C9; text-shadow: none; }
    26%  { color: #0298B9; text-shadow: 0 0 26px rgba(2, 152, 185, .6); }
    32%  { color: #8FD3E2; text-shadow: 0 0 8px rgba(2, 152, 185, .25); }
    46%  { color: #0298B9; text-shadow: 0 0 34px rgba(2, 152, 185, .6); }
    100% { color: #0298B9; text-shadow: 0 0 0 rgba(2, 152, 185, 0); }
  }
  @keyframes lampo {
    0%   { box-shadow: 0 0 0 6px var(--dark), 0 0 0 0 rgba(57, 212, 231, 0); }
    35%  { box-shadow: 0 0 0 6px var(--dark), 0 0 26px 4px rgba(57, 212, 231, .55); }
    100% { box-shadow: 0 0 0 6px var(--dark), 0 0 0 0 rgba(57, 212, 231, 0); }
  }
  @keyframes brilla { 0%, 100% { opacity: .95; } 50% { opacity: .22; } }
  @keyframes evidenzia { 0% { box-shadow: 0 0 0 0 rgba(2, 152, 185, .45); } 100% { box-shadow: 0 0 0 10px rgba(2, 152, 185, 0); } }

  /* 1 · la prima schermata entra in sequenza */
  .hero .intro, .h1-l { animation: sale .85s var(--ease) both; animation-delay: calc(var(--i) * 85ms + 40ms); }
  .hero .luce { animation: accendi 1.5s linear .55s both; }
  .hero__photo img { animation: svela 1.25s cubic-bezier(.77, 0, .18, 1) .42s both, avvicina 2s var(--ease) .42s both; }
  .hero__photo figcaption { animation: appare .6s var(--ease) 1.35s both; }
  .hero__corner path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: disegna .8s var(--ease) 1.2s forwards; }

  /* 2 · le sezioni arrivano scorrendo: la linea dell'occhiello si traccia */
  .js .reveal .eyebrow::after, .js .eyebrow.reveal::after { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .3s; }
  .js .reveal.in .eyebrow::after, .js .eyebrow.reveal.in::after { transform: none; }

  /* 3 · i quattro passaggi: la linea si riempie e i cerchi si accendono uno dopo l'altro */
  .js .steps.reveal { opacity: 1; transform: none; }
  .js .steps.reveal::before { transform: scaleX(0); transform-origin: left; transition: transform 1.7s cubic-bezier(.65, 0, .35, 1) .2s; }
  .js .steps.reveal.in::before { transform: none; }
  .js .steps.reveal .step__n {
    background: var(--dark); color: #39D4E7;
    box-shadow: inset 0 0 0 2px rgba(2, 152, 185, .7), 0 0 0 6px var(--dark);
    transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
  }
  .js .steps.reveal .step__t { opacity: .35; transition: opacity .5s ease; }
  .js .steps.reveal.in .step__n { background: var(--accent); color: var(--white); box-shadow: 0 0 0 6px var(--dark); animation: lampo 1s ease both; }
  .js .steps.reveal.in .step__t { opacity: 1; }
  .js .steps.reveal.in .step:nth-child(1) .step__n, .js .steps.reveal.in .step:nth-child(1) .step__t { transition-delay: .2s; animation-delay: .2s; }
  .js .steps.reveal.in .step:nth-child(2) .step__n, .js .steps.reveal.in .step:nth-child(2) .step__t { transition-delay: .72s; animation-delay: .72s; }
  .js .steps.reveal.in .step:nth-child(3) .step__n, .js .steps.reveal.in .step:nth-child(3) .step__t { transition-delay: 1.25s; animation-delay: 1.25s; }
  .js .steps.reveal.in .step:nth-child(4) .step__n, .js .steps.reveal.in .step:nth-child(4) .step__t { transition-delay: 1.78s; animation-delay: 1.78s; }

  /* 4 · la matrice di LED si accende piano, poi qualche punto respira */
  .js .led-matrix circle { opacity: .1; transition: opacity 1s ease var(--d, 0s); }
  .js .section--dark.is-lit .led-matrix circle { opacity: .95; }
  .js .section--dark:has(.steps.in) .led-matrix circle { opacity: .95; }
  .js .section--dark.is-lit .led-matrix circle.brilla { animation: brilla var(--t, 5s) ease-in-out var(--d2, 2.5s) infinite; animation-play-state: paused; }
  .js .section--dark.is-lit.is-inview .led-matrix circle.brilla { animation-play-state: running; }

  /* 5 · schede e foto rispondono al mouse e al dito */
  .product__photo img, .gallery__media img, .feature-card__photo img { transition: transform .7s var(--ease); }
  .product:active { transform: scale(.99); }
  .gallery__item:active .gallery__media img { transform: scale(1.03); }
  @media (hover: hover) {
    .product:hover { box-shadow: 0 18px 40px -24px rgba(12, 25, 34, .35); transform: translateY(-4px); }
    .product:hover .product__photo img { transform: scale(1.04); }
    .gallery__item:hover .gallery__media img, .trio figure:hover .gallery__media img, .photo-pair__item:hover .gallery__media img { transform: scale(1.045); }
    .gallery__item:hover figcaption { color: var(--ink); }
    .feature-card:hover .feature-card__photo img { transform: scale(1.03) rotate(-1deg); }
  }
  .gallery__item figcaption { transition: color .25s ease; }

  /* 6 · fisarmonica: la risposta arriva morbida */
  .faq__a p { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .35s var(--ease); }
  .faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: .08s; }
  .faq__item.is-open .faq__q button { color: var(--accent); }

  /* 7 · menu da telefono: le voci entrano in fila */
  @media (max-width: 1240px) {
    .nav__list li { opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
    .nav.is-open .nav__list li { opacity: 1; transform: none; }
    .nav.is-open .nav__list li:nth-child(2) { transition-delay: .03s; }
    .nav.is-open .nav__list li:nth-child(3) { transition-delay: .06s; }
    .nav.is-open .nav__list li:nth-child(4) { transition-delay: .09s; }
    .nav.is-open .nav__list li:nth-child(5) { transition-delay: .12s; }
    .nav.is-open .nav__list li:nth-child(6) { transition-delay: .15s; }
    .nav.is-open .nav__list li:nth-child(7) { transition-delay: .18s; }
  }

  /* 8 · avviso cookie: entra senza disturbare */
  .cookie-bar:not([hidden]) { animation: appare .5s var(--ease) both; }

  /* 9 · WhatsApp senza numero: il messaggio arriva già scritto nel modulo, e il campo si accende */
  .field textarea.is-prefilled { animation: evidenzia 1.2s ease-out 2; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 720px) {
  .js .steps.reveal::before { transform: scaleY(0); transform-origin: top; }
  .js .steps.reveal.in::before { transform: none; }
}
