/* Picardi Porte e Finestre — stile "Bonus" (2026-11-17)
 * Ripreso dalla landing /bonus/: Poppins per titoli e pulsanti, blu #123F87, pulsanti verdi arrotondati,
 * sezioni alternate bianco / grigio, metà foto e metà testo, elenchi con spunta, modulo su fondo blu, FAQ ad accordion.
 * Le pagine interne si rigenerano con: node tools/build.mjs */

/* ---------- font (ospitati in locale, niente Google Fonts) ---------- */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-800-latin.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-400i-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- variabili ---------- */
:root {
  --blue-900: #0b2a5c;
  --blue: #123f87;
  --blue-600: #00579e;
  --blue-100: #e8eef8;
  --green: #457f0b;         /* verde dei pulsanti: tono del #61A60E della Bonus, scurito per leggere bene il testo bianco */
  --green-hover: #3a6c09;
  --green-light: #61a60e;
  --brand-red: #6c1212;     /* il rosso del logo, usato poco */
  --ink: #242424;
  --text: #4a4a4a;
  --muted: #6b6b6b;
  --line: #dcdfe5;
  --gray: #f2f2f2;
  --white: #fff;
  --radius: 20px;
  --radius-s: 10px;
  --shadow: 0 10px 30px rgba(11, 42, 92, .12);
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(56px, 8vw, 100px);
  --header-h: 84px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1rem/1.7 var(--font-body); overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h2 strong, h1 strong { font-weight: 700; color: var(--blue); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .8em 1.8em;
  border: 2px solid var(--green); border-radius: var(--radius); background: var(--green); color: #fff;
  font: 700 .95rem/1.2 var(--font-head); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--green-hover); border-color: var(--green-hover); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--blue); }
.btn--blue { background: var(--blue); border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-900); border-color: var(--blue-900); }
.btn--line { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--line:hover { background: var(--blue); color: #fff; }
.btn--small { min-height: 40px; padding: .55em 1.2em; font-size: .82rem; }
.btn[disabled], .btn[aria-disabled="true"] { background: #bdbdbd; border-color: #bdbdbd; color: #fff; cursor: not-allowed; transform: none; }
.link { color: var(--blue-600); font-weight: 500; text-underline-offset: 3px; }
.more { font-family: var(--font-head); font-weight: 600; color: var(--blue); text-decoration: none; }
.more::after { content: " →"; }
.more:hover { text-decoration: underline; }

/* ---------- barra alta e testata ---------- */
.topbar { background: var(--blue-900); color: #dfe7f5; font-size: .85rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: flex-end; align-items: center; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__addr { margin-right: auto; }
.header { position: sticky; top: 0; z-index: 50; background: linear-gradient(#fff, #f6f6f6); box-shadow: 0 2px 14px rgba(0,0,0,.07); }
.header__bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: block; flex: none; }
.logo img { width: 190px; height: auto; }
.menu { display: flex; align-items: center; gap: 0; margin: 0 0 0 auto; padding: 0; list-style: none; }
.menu a { display: block; padding: 10px 8px; color: var(--ink); font: 500 .9rem/1.2 var(--font-head); text-decoration: none; border-radius: 8px; }
.menu a:hover { color: var(--blue); background: var(--blue-100); }
.menu a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--green-light); border-radius: 0; }
.menu .btn { margin-left: 8px; color: #fff; padding: .7em 1.3em; }
.menu .btn:hover { background: var(--green-hover); color: #fff; }
.navtoggle { display: none; margin-left: auto; }
.navtoggle > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 2px solid var(--blue); border-radius: var(--radius);
  color: var(--blue); font: 600 .9rem var(--font-head); }
.navtoggle > summary::-webkit-details-marker { display: none; }
.navtoggle > summary::before { content: ""; width: 18px; height: 12px; background: linear-gradient(var(--blue) 0 0) top/100% 2px no-repeat, linear-gradient(var(--blue) 0 0) center/100% 2px no-repeat, linear-gradient(var(--blue) 0 0) bottom/100% 2px no-repeat; }
.navtoggle > ul { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 8px var(--gutter) 20px; list-style: none; background: #fff; box-shadow: 0 14px 20px rgba(0,0,0,.1); }
.navtoggle li a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font: 500 1rem var(--font-head); text-decoration: none; }
.navtoggle > ul > li:last-child a { border: 0; margin-top: 14px; }
@media (max-width: 1140px) {
  .menu { display: none; }
  .navtoggle { display: block; }
  .logo img { width: 170px; }
  .topbar__addr { display: none; }
  .topbar .container { justify-content: center; }
}
@media (max-width: 359px) { .logo img { width: 140px; } .navtoggle > summary { padding: 8px 10px; } }

/* ---------- hero della home ---------- */
.hero { position: relative; color: #fff; background: var(--blue-900); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,30,66,.88) 0%, rgba(8,30,66,.66) 45%, rgba(8,30,66,.15) 100%); }
.hero .container { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: clamp(460px, 66vh, 640px); padding-top: 60px; padding-bottom: 60px; }
.hero__kicker { display: inline-block; align-self: flex-start; margin-bottom: 18px; padding: 6px 14px; border-radius: var(--radius); background: rgba(255,255,255,.14); font: 500 .85rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { color: #fff; max-width: 15ch; font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 600; }
.hero h1 strong { color: #fff; font-weight: 800; }
.hero__lead { max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e6ecf6; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- fascia dei punti di forza ---------- */
.facts { background: var(--gray); }
.facts ul { list-style: none; margin: 0; padding: 34px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts .ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.facts .ico svg { width: 22px; height: 22px; }
.facts strong { display: block; font: 600 1.05rem/1.3 var(--font-head); color: var(--ink); }
.facts span { font-size: .92rem; color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 900px) { .facts ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts ul { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- sezioni ---------- */
.sec { padding: var(--sec) 0; }
.sec--gray { background: var(--gray); }
.sec--tight { padding: calc(var(--sec) * .6) 0; }
.sec__head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 54px); text-align: center; }
.sec__head--left { margin-left: 0; text-align: left; }
.sec__head p { font-size: 1.08rem; color: var(--muted); margin: 0; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--blue-600); font: 600 .85rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; }

/* metà foto e metà testo, come nella Bonus */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img, .split__media video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__media figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.split__text > :last-child { margin-bottom: 0; }
.split__text .btn { margin-top: 8px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }

/* elenco con spunte */
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { position: relative; padding: 0 0 0 38px; margin-bottom: 14px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks strong { color: var(--ink); }

/* numero grande (come il -50% della Bonus) */
.bignum { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.bignum__n { font: 800 clamp(4.5rem, 13vw, 9.5rem)/0.9 var(--font-head); color: var(--blue); letter-spacing: -.03em; }
.bignum__n small { display: block; font-size: .16em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
@media (max-width: 700px) { .bignum { grid-template-columns: 1fr; } }

/* schede (prodotti, servizi) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.sec--gray .card { box-shadow: 0 6px 18px rgba(11,42,92,.08); }
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(11,42,92,.18); color: inherit; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-100); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover .card__img img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.card__tag { align-self: flex-start; margin-bottom: 10px; padding: 3px 10px; border-radius: var(--radius); background: var(--blue-100); color: var(--blue); font: 600 .74rem var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
.card__tag--green { background: #eaf4dc; color: #3f700a; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .96rem; margin-bottom: 14px; }
.card .more { margin-top: auto; }
@media (max-width: 1000px) { .cards, .cards--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards, .cards--4, .cards--2 { grid-template-columns: 1fr; } }

/* sistema / prodotto con prestazioni */
.system { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 60px); align-items: start; padding: clamp(24px, 4vw, 40px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.system + .system { margin-top: 30px; }
.system__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: var(--radius-s); }
.system__maker { color: var(--muted); font: 500 .9rem var(--font-head); margin-bottom: 4px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 22px; padding: 0; list-style: none; }
.specs li { padding: 12px 14px; border-radius: var(--radius-s); background: var(--blue-100); }
.specs b { display: block; font: 700 1.15rem/1.2 var(--font-head); color: var(--blue); }
.specs span { font-size: .8rem; color: var(--muted); line-height: 1.3; display: block; }
.specs__note { font-size: .8rem; color: var(--muted); margin-top: -10px; }
.system__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .system { grid-template-columns: 1fr; } }

/* galleria lavori */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { position: relative; border-radius: var(--radius-s); overflow: hidden; background: var(--blue-100); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font: 500 .88rem/1.3 var(--font-head);
  background: linear-gradient(transparent, rgba(8,30,66,.85)); }
.gallery figcaption small { display: block; font: 400 .78rem var(--font-body); opacity: .85; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .gallery, .gallery--3 { grid-template-columns: 1fr 1fr; } }

/* numeri */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats div { padding: 26px 12px; border-radius: var(--radius); background: #fff; box-shadow: 0 6px 18px rgba(11,42,92,.08); }
.stats b { display: block; font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--font-head); color: var(--blue); margin-bottom: 8px; }
.stats span { font-size: .92rem; color: var(--muted); }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

/* loghi (marchi, certificazioni) */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.logos a, .logos div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; color: var(--ink); font: 500 .9rem var(--font-head); text-align: center; transition: box-shadow .2s, border-color .2s; }
.logos a:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.logos img { width: 100%; max-width: 180px; height: 90px; object-fit: contain; }
@media (max-width: 800px) { .logos { grid-template-columns: 1fr 1fr; } }

/* passi del lavoro */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 30px 24px 24px; background: #fff; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(11,42,92,.08); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: var(--green); color: #fff; font: 700 1.1rem var(--font-head); }
.steps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.steps p { font-size: .95rem; margin: 0; }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .steps--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- testata delle pagine interne ---------- */
.pagehead { position: relative; color: #fff; background: linear-gradient(120deg, var(--blue-900) 0%, var(--blue) 55%, var(--blue-600) 100%); overflow: hidden; }
.pagehead__bg { position: absolute; inset: 0; opacity: .22; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehead .container { position: relative; padding-top: clamp(46px, 7vw, 84px); padding-bottom: clamp(46px, 7vw, 84px); }
.pagehead h1 { color: #fff; max-width: 22ch; margin-bottom: 12px; }
.pagehead p { max-width: 62ch; margin: 0; font-size: 1.1rem; color: #e1e8f4; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .86rem; color: #c9d6ec; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }

/* ---------- testo lungo (privacy, news) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.notice { padding: 16px 20px; border-left: 5px solid var(--green-light); border-radius: 0 var(--radius-s) var(--radius-s) 0; background: #f3f8ec; color: var(--ink); }
.notice--warn { border-color: #c9820a; background: #fdf5e6; }
.pending { padding: 18px 22px; border: 2px dashed #b7c4dc; border-radius: var(--radius-s); color: var(--muted); background: #fafbfd; font-size: .95rem; }
.date { display: inline-block; margin-bottom: 10px; color: var(--blue-600); font: 600 .86rem var(--font-head); }

/* elenco righe (indice news, documenti) */
.rowlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rowlist li { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.rowlist__name { font: 500 1rem var(--font-head); color: var(--ink); text-decoration: none; }
a.rowlist__name:hover { color: var(--blue); }
.rowlist__meta { font-size: .88rem; color: var(--muted); }

/* ---------- promozioni ---------- */
.promo { display: grid; grid-template-columns: 300px 1fr; gap: 30px; padding: 26px; background: #fff; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(11,42,92,.08); }
.promo + .promo { margin-top: 24px; }
.promo__img { position: relative; }
.promo__img img { width: 100%; border-radius: var(--radius-s); filter: grayscale(.6); opacity: .8; }
.promo__badge { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: var(--radius); background: #636363; color: #fff; font: 700 .78rem var(--font-head); letter-spacing: .06em; }
.promo__img .promo__badge { position: absolute; top: 10px; left: 10px; margin: 0; }
.promo__period { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; } }

/* ---------- FAQ ad accordion (barre blu come nella Bonus) ---------- */
.faq { max-width: 900px; margin: 0 auto; }
.faq details { margin-bottom: 10px; border-radius: var(--radius-s); overflow: hidden; background: #fff; }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 16px 56px 16px 22px; background: var(--blue); color: #fff; font: 500 1rem/1.4 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary { background: var(--blue-600); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { background: var(--blue-600); }
.faq .faq__a { padding: 18px 22px 8px; }

/* ---------- modulo su fondo blu con "dente" ---------- */
.lead { position: relative; color: #fff; background: linear-gradient(180deg, var(--blue-600) 40%, var(--blue) 100%); padding: calc(var(--sec) + 10px) 0 var(--sec); }
.lead::before { content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); border: 30px solid transparent; border-top-color: #fff; border-bottom: 0; }
.sec--gray + .lead::before, .lead--after-gray::before { border-top-color: var(--gray); }
.lead .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.lead h2 { color: #fff; font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.lead h2 strong { color: #fff; font-weight: 700; }
.lead p { color: #dfe8f6; }
.lead .form .form__note { color: var(--muted); }
.lead a:not(.btn) { color: #fff; }
.lead .form a:not(.btn) { color: var(--blue); }
.lead__contacts { list-style: none; padding: 0; margin: 24px 0 0; }
.lead__contacts li { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 1.05rem; }
.lead__contacts svg { width: 22px; height: 22px; flex: none; }
.form { background: #fff; color: var(--text); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: 0 20px 50px rgba(0,0,0,.2); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 .88rem var(--font-head); color: var(--ink); margin-bottom: 6px; }
.field label .req { color: #b3261e; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #c9ced8; border-radius: var(--radius-s); background: #fafbfc; font: 400 1rem var(--font-body); color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(0,87,158,.18); background: #fff; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__help { min-height: 1.3em; margin: 4px 0 6px; font-size: .82rem; color: #b3261e; }
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin: 4px 0 6px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.check a { color: var(--blue-600) !important; }
.form__foot { grid-column: 1 / -1; }
.form__foot .btn { width: 100%; }
.form__status { margin: 12px 0 0; font-size: .92rem; color: var(--ink); }
.form__status:empty { display: none; }
.form__status.is-ok { color: #2f6b06; font-weight: 500; }
.form__note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .lead .container { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- dati aziendali e mappa ---------- */
.company { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.company div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.company dt { font: 600 .9rem var(--font-head); color: var(--ink); }
.company dd { margin: 0; }
@media (max-width: 520px) { .company div { grid-template-columns: 1fr; gap: 2px; } }
.map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--blue-100); aspect-ratio: 4 / 3; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center;
  background: repeating-linear-gradient(45deg, #e8eef8 0 18px, #e1e9f5 18px 36px); }
.map__consent p { max-width: 40ch; margin: 0; font-size: .92rem; }

/* ---------- video ---------- */
.video { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video video { width: 100%; aspect-ratio: 16 / 9; }

/* ---------- piè di pagina ---------- */
.footer { background: var(--blue-900); color: #c9d4e8; font-size: .94rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer address a { text-decoration: underline; text-underline-offset: 3px; }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 64px 0 44px; }
.footer__brand img { width: 190px; padding: 12px 14px; background: #fff; border-radius: var(--radius-s); margin-bottom: 18px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer address { font-style: normal; line-height: 1.7; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.14); padding: 20px var(--gutter) 90px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .84rem; }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal li { margin: 0; }
.footer__legal button { background: none; border: 0; padding: 0; color: #fff; font: inherit; cursor: pointer; }
.footer__legal button:hover { text-decoration: underline; }
@media (max-width: 900px) { .footer__main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__main { grid-template-columns: 1fr; } }

/* ---------- pulsante flottante (come la calcolatrice della Bonus) ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 0 20px 0 14px; height: 56px; border-radius: 28px;
  background: var(--green); color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.25); font: 600 .92rem var(--font-head); text-decoration: none; transition: transform .2s, background .2s; }
.fab:hover { background: var(--green-hover); color: #fff; transform: translateY(-2px); }
.fab svg { width: 26px; height: 26px; }
@media (max-width: 600px) { .fab { right: 14px; bottom: 14px; padding: 0; width: 56px; justify-content: center; } .fab span { display: none; } }

/* ---------- banner cookie ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 1080px; margin: 0 auto; padding: 18px 22px; background: #fff; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.25); font-size: .9rem; display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center; }
.cookie h2, .cookie > p, .cookie__prefs { grid-column: 1; }
.cookie__actions { grid-column: 2; grid-row: 1 / span 3; }
@media (max-width: 760px) { .cookie { grid-template-columns: 1fr; } .cookie__actions { grid-column: 1; grid-row: auto; } }
.cookie h2 { font-size: 1.05rem; margin-bottom: 8px; }
.cookie p { margin-bottom: 4px; }
.cookie__prefs .check { margin: 6px 0; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__actions .btn { flex: 1 1 auto; }
.cookie[hidden] { display: none; }
@media (max-width: 520px) { .cookie { left: 8px; right: 8px; bottom: 8px; padding: 16px; } }

/* ---------- animazione d'ingresso, discreta ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
  .hero h1, .hero__lead, .hero__actions, .hero__kicker { animation: rise .8s ease both; }
  .hero__lead { animation-delay: .12s; } .hero__actions { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .topbar, .header, .fab, .cookie, .lead, .footer__main { display: none; } }

/* ---------- ritocchi da telefono ---------- */
.hero h1, .hero__lead { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
@media (max-width: 760px) {
  .hero__bg::after { background: linear-gradient(180deg, rgba(8,30,66,.78) 0%, rgba(8,30,66,.7) 60%, rgba(8,30,66,.85) 100%); }
  .hero .container { min-height: 0; padding-top: 48px; padding-bottom: 48px; }
  .bignum__n { font-size: 4.5rem; display: flex; align-items: baseline; gap: 14px; }
  .bignum__n small { display: inline; margin: 0; font-size: .85rem; }
}
.navtoggle li a.btn { justify-content: center; color: #fff; border: 2px solid var(--green); padding: 14px; }

/* ---------- social ---------- */
.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; transition: background .2s; }
.social a:hover { background: var(--green); }
.social svg { width: 20px; height: 20px; }
.social--top { gap: 6px; }
.social--top a { width: 28px; height: 28px; background: transparent; }
.social--top svg { width: 17px; height: 17px; }
.footer__follow { margin: 18px 0 8px; font: 600 .85rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: #fff; }

/* ---------- dicono di noi ---------- */
.ratings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.rating__score { font: 800 2.6rem/1 var(--font-head); color: var(--blue); }
.rating__score small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.rating__body { flex: 1 1 200px; }
.rating__body strong { display: block; font: 600 1.1rem var(--font-head); color: var(--blue-900); }
.rating__body span { font-size: .92rem; color: var(--muted); }
.rating__actions { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.stars, .rating__body .stars { display: inline-flex; gap: 2px; color: #f4b400; vertical-align: -3px; margin: 4px 0; }
.stars svg { width: 18px; height: 18px; }
.stars .off, .rating__body .stars .off { color: #d5dbe6; }
.quote { margin: 30px 0 0; padding: 30px 34px; background: #fff; border-left: 5px solid var(--green-light); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.quote p { font: 500 1.2rem/1.5 var(--font-head); color: var(--blue-900); margin: 0 0 12px; }
.quote footer { font-size: .9rem; color: var(--muted); }
.press { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; padding: 26px 30px; border: 1px solid #dbe3ef; border-radius: var(--radius); background: #fff; }
.press p { margin: 0; flex: 1 1 380px; }
@media (max-width: 760px) { .ratings { grid-template-columns: 1fr; } .quote { padding: 24px; } }

/* ---------- fascia blu con download del catalogo ---------- */
.sec--blue { background: linear-gradient(120deg, var(--blue-900) 0%, var(--blue) 60%, var(--blue-600) 100%); color: #dfe7f5; }
.sec--blue h2 { color: #fff; }
.sec--blue .eyebrow { color: var(--green-light); }
.download { display: grid; grid-template-columns: 240px 1fr; gap: clamp(26px, 5vw, 60px); align-items: center; max-width: 960px; margin: 0 auto; }
.download img { width: 100%; height: auto; border-radius: var(--radius-s); box-shadow: 0 18px 40px rgba(0,0,0,.35); background: #fff; }
.download p { color: #dfe7f5; }
@media (max-width: 640px) { .download { grid-template-columns: 1fr; } .download img { max-width: 200px; } }

/* ---------- etichette ---------- */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pills li { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid #dbe3ef; font: 500 .9rem var(--font-head); color: var(--blue-900); }

/* ---------- social ---------- */
.socialgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.socialcard { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s; }
.socialcard:hover { transform: translateY(-3px); color: var(--ink); }
.socialcard__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; background: var(--blue); color: #fff; }
.socialcard__ico svg { width: 26px; height: 26px; }
.socialcard strong { font: 600 1.15rem var(--font-head); color: var(--blue-900); }
.socialcard span { font-size: .92rem; color: var(--muted); }
.socialcard b { font: 700 1rem var(--font-head); color: var(--blue); }
.socialcard .more { margin-top: auto; padding-top: 10px; }
@media (max-width: 960px) { .socialgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .socialgrid { grid-template-columns: 1fr; } }

/* ---------- pagine lavoro e prodotto ---------- */
.worknav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.backlink { padding-top: 28px; padding-bottom: 28px; }

/* ---------- contenuti social automatici ---------- */
.feed--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feed--grid > p { grid-column: 1 / -1; }
.feed__item { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s; }
.feed__item:hover { transform: translateY(-3px); color: var(--ink); }
.feed__img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--blue-100); overflow: hidden; }
.feed__img img { width: 100%; height: 100%; object-fit: cover; }
.feed__play { position: absolute; left: 50%; top: 50%; width: 58px; height: 40px; margin: -20px 0 0 -29px; border-radius: 12px; background: rgba(11,42,92,.85); }
.feed__play::after { content: ""; position: absolute; left: 24px; top: 12px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.feed__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.feed__body strong { font: 600 1rem/1.35 var(--font-head); color: var(--blue-900); }
.feed__text { font-size: .95rem; }
.feed__body time { font-size: .82rem; color: var(--muted); }
.feed--tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.feed__tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-s); background: var(--blue-100); }
.feed__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.feed__tile:hover img { transform: scale(1.05); }
.feed--quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 30px; }
.feed--quotes .quote { margin: 0; }
.quote .stars { display: block; margin-bottom: 8px; color: #f4b400; font-size: 1.1rem; letter-spacing: 2px; }
.feed__note { margin: 22px auto 0; max-width: 760px; text-align: center; font-size: .85rem; color: var(--muted); }
@media (max-width: 960px) { .feed--grid { grid-template-columns: 1fr 1fr; } .feed--tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .feed--grid { grid-template-columns: 1fr; } .feed--quotes { grid-template-columns: 1fr; } }

/* =========================================================================
   PAGINA SOCIAL (dicono-di-noi.html): versione giocosa con animazioni.
   Tutto è racchiuso in .fun; con prefers-reduced-motion le animazioni si spengono.
   ========================================================================= */
.fun { --fb: #1877f2; --ig1: #f58529; --ig2: #dd2a7b; --ig3: #8134af; --ig4: #515bd4; --yt: #ff0033; --li: #0a66c2; --pink: #ff4f81; }

/* ---- testata animata ---- */
.funhero { position: relative; overflow: hidden; padding: clamp(70px, 10vw, 120px) 0 clamp(80px, 11vw, 130px); color: #fff; background: var(--blue-900); text-align: center; isolation: isolate; }
.funhero .crumbs { justify-content: center; }
.funhero__bg span { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; animation: blob 14s ease-in-out infinite alternate; }
.funhero__bg span:nth-child(1) { width: 420px; height: 420px; left: -80px; top: -120px; background: var(--blue-600); }
.funhero__bg span:nth-child(2) { width: 380px; height: 380px; right: -60px; top: 10%; background: var(--ig2); opacity: .35; animation-duration: 18s; }
.funhero__bg span:nth-child(3) { width: 340px; height: 340px; left: 35%; bottom: -200px; background: var(--green-light); opacity: .35; animation-duration: 16s; }
@keyframes blob { to { transform: translate(60px, 40px) scale(1.15); } }
.funhero__bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.funhero__bubble { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; animation: floaty 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
.funhero__bubble svg { width: 26px; height: 26px; }
.funhero__bubble--facebook { left: 7%; top: 22%; }
.funhero__bubble--instagram { right: 9%; top: 18%; width: 64px; height: 64px; }
.funhero__bubble--youtube { left: 14%; bottom: 14%; width: 46px; height: 46px; }
.funhero__bubble--linkedin { right: 15%; bottom: 18%; }
.funhero__bubble--star { left: 30%; top: 9%; width: 38px; height: 38px; color: #ffd34d; }
.funhero__bubble--quote { right: 30%; bottom: 8%; width: 40px; height: 40px; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-22px) rotate(6deg); } }
.funhero__kicker { display: inline-block; margin-bottom: 14px; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.14); font: 600 .8rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.funhero h1 { color: #fff; font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 16ch; margin: 0 auto 16px; }
.funhero__wave { position: relative; white-space: nowrap; color: #ffd34d; }
.funhero__wave::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .28em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q5 0 10 5 T20 5 T30 5 T40 5' fill='none' stroke='%23ffd34d' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x 0 0 / 40px 100%; animation: wave 1.6s linear infinite; }
@keyframes wave { to { background-position: 40px 0; } }
.funhero p { max-width: 620px; margin: 0 auto; color: #dfe7f5; font-size: 1.08rem; }
.funhero__nets { display: flex; justify-content: center; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.netbtn { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.25); animation: popin .6s cubic-bezier(.34,1.56,.64,1) both; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.funhero__nets li:nth-child(2) .netbtn { animation-delay: .1s; }
.funhero__nets li:nth-child(3) .netbtn { animation-delay: .2s; }
.funhero__nets li:nth-child(4) .netbtn { animation-delay: .3s; }
.netbtn:hover, .netbtn:focus-visible { transform: translateY(-6px) rotate(-8deg) scale(1.08); color: #fff; }
.netbtn svg { width: 30px; height: 30px; }
.netbtn--facebook, .netcard--facebook { --c: var(--fb); }
.netbtn--youtube, .netcard--youtube { --c: var(--yt); }
.netbtn--linkedin, .netcard--linkedin { --c: var(--li); }
.netbtn--facebook, .netbtn--youtube, .netbtn--linkedin { background: var(--c); }
.netbtn--instagram, .netcard--instagram .netcard__ico, .netcard--instagram::before, .netcard--instagram .netcard__cta { background: linear-gradient(45deg, var(--ig1), var(--ig2) 45%, var(--ig3) 75%, var(--ig4)); }
.netcard--instagram { --c: var(--ig2); }
@keyframes popin { from { opacity: 0; transform: scale(.4); } }

/* ---- comparsa «a salti» ---- */
.fun .pop { opacity: 0; transform: translateY(26px) scale(.94); transition: opacity .5s ease, transform .6s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(var(--d, 0) * 90ms); }
.fun .pop.is-in { opacity: 1; transform: none; }

/* ---- schede dei social ---- */
.netgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.netcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; overflow: hidden; padding: 64px 22px 26px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); color: var(--ink); text-align: center; text-decoration: none; }
.netcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 56px; background: var(--c); }
.netcard.pop.is-in:hover { transform: translateY(-8px) rotate(-1deg); transition-delay: 0s; color: var(--ink); }
.netcard__ico { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin: -38px 0 10px; border: 5px solid #fff; border-radius: 50%; background: var(--c); color: #fff; }
.netcard__ico svg { width: 32px; height: 32px; }
.netcard:hover .netcard__ico { animation: wiggle .6s ease; }
@keyframes wiggle { 25% { transform: rotate(-14deg) scale(1.1); } 50% { transform: rotate(10deg) scale(1.1); } 75% { transform: rotate(-6deg); } }
.netcard strong { font: 700 1.2rem var(--font-head); color: var(--blue-900); }
.netcard__handle { font-size: .85rem; color: var(--muted); }
.netcard__say { margin-top: 6px; font-size: .95rem; }
.netcard__num { margin-top: 8px; font: 500 .95rem var(--font-head); color: var(--muted); }
.netcard__num b { font-size: 1.6rem; font-weight: 800; color: var(--c); }
.netcard__cta { margin-top: 14px; padding: 9px 20px; border-radius: 999px; background: var(--c); color: #fff; font: 600 .85rem var(--font-head); transition: transform .2s; }
.netcard:hover .netcard__cta { transform: scale(1.06); }
@media (max-width: 960px) { .netgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .netgrid { grid-template-columns: 1fr; } .funhero__bubble { opacity: .5; } }

/* ---- video e post ---- */
.fun .feed__play { transition: transform .25s; }
.fun .feed__item--video:hover .feed__play { transform: scale(1.18); background: var(--yt); }
.fun .feed__item--video .feed__play { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,0,51,.45); } 50% { box-shadow: 0 0 0 12px rgba(255,0,51,0); } }
.fun .feed__item { border-radius: 18px; }
.fun .feed__tile { border-radius: 16px; }
.fun .feed__tile.is-in:hover { transform: rotate(-2deg) scale(1.03); transition-delay: 0s; }

/* ---- punteggi ---- */
.scoreboard { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 26px; }
.score { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 24px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.score__brand { font: 700 .8rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.score__num { font: 800 3.4rem/1 var(--font-head); color: var(--blue); }
.score__num small { font-size: 1.2rem; font-weight: 600; color: var(--muted); }
.score__stars { position: relative; display: inline-block; font-size: 1.9rem; line-height: 1; letter-spacing: 3px; color: #d5dbe6; }
.score__stars-on { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; width: 0; color: #f4b400; transition: width 1.6s cubic-bezier(.22,1,.36,1) .3s; }
.score.is-in .score__stars-on { width: var(--fill); }
.score__meter { display: block; width: 80%; height: 12px; border-radius: 999px; background: #e3e9f2; overflow: hidden; }
.score__meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--fb), var(--green-light)); transition: width 1.6s cubic-bezier(.22,1,.36,1) .3s; }
.score.is-in .score__meter span { width: var(--fill); }
.score__count { font-size: .92rem; color: var(--muted); }
.score__actions { margin-top: 8px; }
@media (max-width: 640px) { .scoreboard { grid-template-columns: 1fr; } }

/* ---- recensioni a fumetto ---- */
.feed--bubbles { margin-top: 44px; }
.feed--bubbles .quote { position: relative; margin: 0 0 18px; padding: 26px 28px; border: 0; border-radius: 24px 24px 24px 6px; background: #fff; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.feed--bubbles .quote:nth-child(2) { animation-delay: -1.3s; }
.feed--bubbles .quote:nth-child(3) { animation-delay: -2.6s; }
.feed--bubbles .quote::after { content: ""; position: absolute; left: 22px; bottom: -14px; border: 14px solid transparent; border-top-color: #fff; border-left-width: 0; }
.feed--bubbles .quote:nth-child(3n+2) { background: #eef5ff; }
.feed--bubbles .quote:nth-child(3n+2)::after { border-top-color: #eef5ff; }
.feed--bubbles .quote:nth-child(3n+3) { background: #f2f9e9; }
.feed--bubbles .quote:nth-child(3n+3)::after { border-top-color: #f2f9e9; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---- cuori ---- */
.lovebox { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 30px; margin-top: 40px; padding: 28px; border-radius: 22px; background: linear-gradient(120deg, #fff0f4, #eef5ff); text-align: center; }
.lovebox p { margin: 0; max-width: 460px; }
.lovebox__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.heartbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 12px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 6px 16px rgba(255,79,129,.25); color: var(--pink); font: 700 1rem var(--font-head); cursor: pointer; transition: transform .15s; }
.heartbtn svg { width: 30px; height: 30px; transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.heartbtn:hover svg { transform: scale(1.15); }
.heartbtn:active { transform: scale(.94); }
.heartbtn.is-beat svg { animation: beat .45s ease; }
@keyframes beat { 30% { transform: scale(1.4); } 60% { transform: scale(.9); } }
.flyheart { position: fixed; z-index: 70; width: 26px; height: 26px; color: #ff4f81; pointer-events: none; animation: fly 1.4s ease-out forwards; }
.flyheart svg { width: 100%; height: 100%; }
@keyframes fly { to { transform: translate(var(--x), -160px) rotate(var(--r)) scale(.6); opacity: 0; } }

/* ---- movimento ridotto ---- */
@media (prefers-reduced-motion: reduce) {
  .fun *, .fun *::before, .fun *::after { animation: none !important; transition: none !important; }
  .fun .pop { opacity: 1; transform: none; }
  .score__stars-on, .score__meter span { width: var(--fill) !important; }
  .flyheart { display: none; }
}

/* =========================================================================
   ANIMAZIONI IN TUTTO IL SITO
   - .anim-on viene messo da js/site.js solo se JavaScript gira e «riduci movimento» non è attivo:
     senza JavaScript tutto resta visibile.
   - Le entrate usano .anim (+ --d per la cascata) e .is-in quando l'elemento arriva nello schermo.
   ========================================================================= */
.anim-on .anim { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .9s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--d, 0) * 80ms); }
.anim-on .anim--left { transform: translateX(-46px); }
.anim-on .anim--right { transform: translateX(46px); }
.anim-on .anim--zoom { transform: scale(.94); }
.anim-on .anim.is-in { opacity: 1; transform: none; }

/* ---- testata della home: entrata a tempo e foto che si muove piano ---- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
.anim-on .hero__bg img { animation: kenburns 14s ease-out both; }
.anim-on .hero__kicker, .anim-on .hero h1, .anim-on .hero__lead, .anim-on .hero__actions { animation: rise .9s cubic-bezier(.22,1,.36,1) both; }
.anim-on .hero h1 { animation-delay: .12s; }
.anim-on .hero__lead { animation-delay: .26s; }
.anim-on .hero__actions { animation-delay: .4s; }

/* ---- intestazione delle pagine interne ---- */
.anim-on .pagehead__bg img { animation: kenburns 16s ease-out both; }
.anim-on .pagehead .crumbs, .anim-on .pagehead h1, .anim-on .pagehead .container > p { animation: rise .8s cubic-bezier(.22,1,.36,1) both; }
.anim-on .pagehead h1 { animation-delay: .1s; }
.anim-on .pagehead .container > p { animation-delay: .22s; }

/* ---- punti di forza sotto la testata ---- */
.anim-on .facts .ico { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.facts li:hover .ico { transform: rotate(-10deg) scale(1.12); }

/* ---- intestazione del sito che si compatta scorrendo ---- */
.header { transition: box-shadow .3s, background .3s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(11,42,92,.14); }

/* ---- pulsanti: riflesso al passaggio ---- */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.btn:hover::after { animation: shine .8s ease; }
.btn--line::after, .btn--ghost::after { display: none; }

/* ---- link «Scopri» con freccia che scivola ---- */
.more::after { display: inline-block; transition: transform .25s; }
.more:hover::after, a:hover .more::after { transform: translateX(5px); }

/* ---- foto: lieve zoom al passaggio ---- */
.split__media { overflow: hidden; }
.split__media img { transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.split__media:hover img { transform: scale(1.04); }
.system__media { overflow: hidden; }
.system__media img { transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.system:hover .system__media img { transform: scale(1.04); }
.gallery figure img { transition: transform .8s cubic-bezier(.22,1,.36,1); }
.gallery figure:hover img { transform: scale(1.06); }

/* ---- numeri, passi, valori tecnici ---- */
.stats div { transition: transform .3s, box-shadow .3s; }
.stats div:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,42,92,.14); }
.steps li { transition: transform .3s, box-shadow .3s; }
.steps li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,42,92,.14); }
.steps li::before { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.steps li:hover::before { transform: scale(1.15) rotate(-8deg); }
.specs li { transition: transform .25s, background .25s; }
.specs li:hover { transform: translateY(-3px); background: #dfe9f8; }
.checks li::before { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.checks li:hover::before { transform: scale(1.25); }
.faq details[open] .faq__a { animation: rise .45s ease both; }

/* ---- pulsante flottante «Preventivo»: un richiamo discreto ogni tanto ---- */
@keyframes nudge { 0%, 88%, 100% { transform: none; } 91% { transform: translateY(-6px) rotate(-3deg); } 94% { transform: translateY(0) rotate(2deg); } 97% { transform: translateY(-3px); } }
.anim-on .fab { animation: nudge 9s ease-in-out 4s infinite; }
.fab:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .btn:hover::after { animation: none; }
  .split__media:hover img, .system:hover .system__media img, .gallery figure:hover img, .stats div:hover, .steps li:hover, .specs li:hover { transform: none; }
}

/* le entrate laterali non devono creare scorrimento orizzontale */
main { overflow-x: clip; }

/* =================================================================== MENU CON SOTTOMENU
   Ogni pagina è raggiungibile dal menu. Il sottomenu si apre al passaggio del mouse, con il tasto Tab
   (focus-within) e con il pulsante a freccia (classe is-open, da js/site.js). */
.header__bar { position: relative; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li.has-sub--mega { position: static; }
.menu__toggle { display: inline-flex; align-items: center; gap: 4px; margin-left: -4px; padding: 10px 6px; border: 0; background: none; color: var(--ink); border-radius: 8px; cursor: pointer; font: 500 .9rem/1.2 var(--font-head); }
.menu__toggle svg { transition: transform .25s; }
.menu__toggle--text { margin-left: 0; padding: 10px 8px; }
.menu__toggle:hover, .menu__toggle[aria-expanded="true"] { color: var(--blue); background: var(--blue-100); }
.menu__toggle[data-current] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--green-light); border-radius: 0; }
.sub { position: absolute; top: 100%; left: 0; z-index: 60; padding-top: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s cubic-bezier(.22,1,.36,1), visibility 0s .25s; }
.has-sub--mega > .sub { left: var(--gutter); right: var(--gutter); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s cubic-bezier(.22,1,.36,1), visibility 0s; }
.has-sub:hover > .menu__toggle svg, .has-sub.is-open > .menu__toggle svg { transform: rotate(180deg); }
.sub__panel { display: flex; gap: 36px; padding: 24px 28px; background: #fff; border-radius: var(--radius-s); box-shadow: 0 18px 44px rgba(11,42,92,.18); border-top: 3px solid var(--green-light); }
.has-sub--mega .sub__panel { display: grid; grid-template-columns: repeat(4, 1fr); }
.sub__col { min-width: 190px; }
.sub__h { margin: 0 0 8px; color: var(--blue-600); font: 600 .74rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.sub ul { list-style: none; margin: 0; padding: 0; }
.menu .sub a { padding: 7px 10px; margin: 0 -10px; font-size: .92rem; white-space: nowrap; }
.menu .sub a.sub__child { padding-left: 24px; font-weight: 400; color: var(--text); font-size: .88rem; }
.menu .sub a.sub__child::before { content: "– "; color: var(--muted); }
.menu .sub a[aria-current="page"] { box-shadow: none; border-radius: 8px; background: var(--blue-100); }
@media (prefers-reduced-motion: reduce) { .sub { transform: none; } }

/* menu da telefono: gruppi apribili */
.navtoggle[open] > ul { max-height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.navgroup > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font: 500 1rem var(--font-head); }
.navgroup > summary::-webkit-details-marker { display: none; }
.navgroup > summary::after { content: "+"; font-size: 1.3rem; color: var(--blue); line-height: 1; }
.navgroup[open] > summary::after { content: "–"; }
.navgroup ul { list-style: none; margin: 0 0 6px; padding: 0 0 0 12px; }
.navgroup__h { margin: 12px 0 2px 12px; color: var(--blue-600); font: 600 .72rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.navtoggle .navgroup li a { padding: 9px 4px; font-size: .95rem; border-bottom: 0; margin: 0; }
.navtoggle .navgroup li a.sub__child { padding-left: 18px; color: var(--text); font-weight: 400; }
.navtoggle .navgroup li:last-child a { border: 0; margin: 0; }

/* =================================================================== PIÈ DI PAGINA: INDIRIZZI E TELEFONI */
.footer__contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 44px; padding-bottom: 8px; }
.footer .fcontact { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-s); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: background .2s, transform .2s; }
.footer .fcontact:hover { background: rgba(255,255,255,.14); text-decoration: none; transform: translateY(-2px); }
.fcontact__ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; }
.fcontact__ico svg { width: 20px; height: 20px; }
.fcontact small { display: block; color: #c9d4e8; font-size: .78rem; line-height: 1.3; }
.fcontact strong { display: block; color: #fff; font: 600 .98rem/1.35 var(--font-head); }
.footer__main { padding-top: 44px; }
@media (max-width: 1000px) { .footer__contacts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__contacts { grid-template-columns: 1fr; } }

/* =================================================================== HOME: PERCORSI PER TIPO DI CLIENTE */
.hero__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 26px; font: 500 .95rem var(--font-head); }
.hero__who span { color: #dfe7f5; }
.hero__who a { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.1); color: #fff; text-decoration: none; backdrop-filter: blur(4px); transition: background .2s, color .2s; }
.hero__who a:hover { background: #fff; color: var(--blue); }
.anim-on .hero__who { animation: rise .9s cubic-bezier(.22,1,.36,1) .5s both; }

.persona { background: linear-gradient(180deg, var(--blue-100), #fff 70%); }
.persona__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 auto 30px; max-width: 980px; }
.persona__tab { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; border: 2px solid var(--line); border-radius: var(--radius-s); background: #fff; color: var(--ink); cursor: pointer; font: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.persona__tab:hover { border-color: var(--blue-600); transform: translateY(-2px); }
.persona__tab strong { display: block; font: 600 1rem/1.25 var(--font-head); }
.persona__tab small { display: block; color: var(--muted); font-size: .84rem; }
.persona__ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue-100); color: var(--blue); transition: background .2s, color .2s; }
.persona__ico svg { width: 22px; height: 22px; }
.persona__tab[aria-selected="true"] { border-color: var(--blue); box-shadow: var(--shadow); }
.persona__tab[aria-selected="true"] .persona__ico { background: var(--blue); color: #fff; }
.persona:not(.is-js) .persona__panel + .persona__panel { margin-top: 40px; }
.persona__panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); }
.persona__panel.is-shown { animation: panelIn .5s cubic-bezier(.22,1,.36,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.persona__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.persona__text h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.persona__text h3 strong { color: var(--blue); }
.persona__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-s); color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pick:hover { border-color: var(--blue-600); box-shadow: 0 8px 20px rgba(11,42,92,.1); transform: translateY(-2px); }
.pick img, .pick__ico { flex: none; width: 58px; height: 58px; border-radius: 8px; object-fit: cover; }
.pick__ico { display: grid; place-items: center; background: var(--blue-100); color: var(--blue); }
.pick__ico svg { width: 26px; height: 26px; }
.pick strong { display: block; color: var(--ink); font: 600 .92rem/1.25 var(--font-head); }
.pick small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.persona__works-h { margin: 36px 0 16px; font-size: 1.05rem; color: var(--blue-900); }
.persona__more { margin: 20px 0 0; text-align: center; }
.inline-cta { margin: 30px auto 0; max-width: 760px; padding: 16px 22px; border-radius: var(--radius-s); background: #fff; border-left: 4px solid var(--green-light); text-align: center; }
@media (max-width: 900px) {
  .persona__tabs { grid-template-columns: 1fr; }
  .persona__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .picks { grid-template-columns: 1fr; } }

/* =================================================================== REALIZZAZIONI: SCELTA DEL TIPO DI CLIENTE */
.filterbar { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px rgba(11,42,92,.06); }
.filterbar .container { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; }
.filterbar__label { flex: none; color: var(--muted); font: 500 .9rem var(--font-head); }
.filterbar ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.filterbar__btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--blue); color: var(--blue); font: 600 .9rem var(--font-head); text-decoration: none; transition: background .2s, color .2s; }
.filterbar__btn span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--blue-100); font-size: .78rem; }
.filterbar__btn:hover, .filterbar__btn.is-active { background: var(--blue); color: #fff; }
.filterbar__btn:hover span, .filterbar__btn.is-active span { background: rgba(255,255,255,.2); }
html:has(.filterbar) { scroll-padding-top: calc(var(--header-h) + 80px); }

/* =================================================================== AZIENDA: IL GRUPPO (due loghi che si avvicinano e si collegano) */
.sec--group { background: radial-gradient(ellipse at 50% 0%, var(--blue-100), #fff 70%); }
.group { display: grid; grid-template-columns: 1fr minmax(120px, 220px) 1fr; align-items: center; max-width: 900px; margin: 10px auto 44px; }
.group__logo { display: grid; place-items: center; height: 170px; padding: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.group__logo img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.group__logo--a img { max-width: 260px; }
.group__logo--b img { max-height: 130px; }
.group__link { position: relative; height: 170px; }
.group__line { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--green-light)); transform-origin: center; }
.group__spark { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--green-light), 0 0 18px var(--green-light); opacity: 0; }
.group__badge { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--blue); color: #fff; text-align: center; font: 600 .8rem/1.15 var(--font-head); box-shadow: 0 0 0 6px #fff, var(--shadow); }
.group__cards { max-width: 900px; margin: 0 auto; }
/* animazione: solo con JavaScript e senza «riduci movimento» (classe anim-on) */
.anim-on .group .group__logo--a { transform: translateX(-60px) rotate(-4deg); opacity: 0; }
.anim-on .group .group__logo--b { transform: translateX(60px) rotate(4deg); opacity: 0; }
.anim-on .group .group__line { transform: scaleX(0); }
.anim-on .group .group__badge { transform: scale(0); }
.anim-on .group.is-in .group__logo { transform: none; opacity: 1; transition: transform 1s cubic-bezier(.22,1,.36,1), opacity .8s; }
.anim-on .group.is-in .group__line { transform: scaleX(1); transition: transform .8s cubic-bezier(.22,1,.36,1) .7s; }
.anim-on .group.is-in .group__badge { transform: scale(1); transition: transform .6s cubic-bezier(.34,1.56,.64,1) 1.3s; animation: groupPulse 3.2s ease-in-out 2.2s infinite; }
.anim-on .group.is-in .group__spark { animation: groupSpark 2.6s ease-in-out 1.6s infinite; }
.anim-on .group.is-in .group__spark--2 { animation-name: groupSparkBack; animation-delay: 2.9s; }
.anim-on .group.is-in .group__logo--a { animation: groupFloat 5s ease-in-out 1.8s infinite; }
.anim-on .group.is-in .group__logo--b { animation: groupFloat 5s ease-in-out 3.3s infinite; }
@keyframes groupSpark { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes groupSparkBack { 0% { left: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }
@keyframes groupPulse { 0%, 100% { box-shadow: 0 0 0 6px #fff, 0 0 0 6px rgba(97,166,14,0), var(--shadow); } 50% { box-shadow: 0 0 0 6px #fff, 0 0 0 16px rgba(97,166,14,.25), var(--shadow); } }
@keyframes groupFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes groupSparkV { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes groupSparkVBack { 0% { top: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 0; opacity: 0; } }
@media (max-width: 700px) {
  .group { grid-template-columns: 1fr; max-width: 340px; }
  .group__logo { height: 130px; }
  .group__link { height: 120px; }
  .group__line { left: 50%; right: auto; top: 0; bottom: 0; width: 4px; height: auto; margin: 0 0 0 -2px; background: linear-gradient(180deg, var(--blue), var(--green-light)); }
  .anim-on .group .group__line { transform: scaleY(0); }
  .anim-on .group.is-in .group__line { transform: scaleY(1); }
  .group__spark { left: 50%; top: 0; }
  .anim-on .group.is-in .group__spark { animation-name: groupSparkV; }
  .anim-on .group.is-in .group__spark--2 { animation-name: groupSparkVBack; }
  .anim-on .group .group__logo--a { transform: translateY(-40px); }
  .anim-on .group .group__logo--b { transform: translateY(40px); }
}

/* ---------- home: richieste (come la risposta automatica di WhatsApp) ---------- */
.reqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reqcard { display: flex; flex-direction: column; gap: 8px; padding: 30px 26px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.reqcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,42,92,.18); color: inherit; }
.reqcard__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 8px; border-radius: 50%; background: var(--blue); color: #fff; }
.reqcard__icon svg { width: 26px; height: 26px; }
.reqcard h3 { margin: 0; font-size: 1.15rem; }
.reqcard p { margin: 0; flex: 1; font-size: .96rem; }
.reqcard .more { margin-top: 8px; }
.reqinfo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.reqinfo > div { padding: 28px 26px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.reqinfo__wa { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.reqinfo__wa p { margin: 0; }
.reqinfo__hours h3 { margin: 0 0 12px; font-size: 1.05rem; }
.reqinfo__hours dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.reqinfo__hours dt { font-weight: 600; }
.reqinfo__hours dd { margin: 0; }
.reqinfo__note { margin: 14px 0 0; font-size: .9rem; }
.btn--wa { display: inline-flex; align-items: center; gap: 10px; background: #147a3a; border-color: #147a3a; color: #fff; }
.btn--wa:hover { background: #0f6630; border-color: #0f6630; color: #fff; }
.btn--wa svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .reqs { grid-template-columns: 1fr; } .reqinfo { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .reqinfo__hours dl { grid-template-columns: 1fr; gap: 2px; } .reqinfo__hours dd { margin-bottom: 8px; } }

/* bollino WhatsApp, sopra il pulsante Preventivo */
.fab--wa { bottom: 88px; width: 56px; padding: 0; justify-content: center; background: #147a3a; }
.fab--wa:hover { background: #0f6630; }
.fab--wa svg { width: 30px; height: 30px; }
.anim-on .fab--wa { animation: waPulse 2.6s ease-out 2s infinite; }
@keyframes waPulse { 0% { box-shadow: 0 10px 26px rgba(0,0,0,.25), 0 0 0 0 rgba(20,122,58,.55); } 70%, 100% { box-shadow: 0 10px 26px rgba(0,0,0,.25), 0 0 0 16px rgba(20,122,58,0); } }
@media (max-width: 600px) { .fab--wa { bottom: 80px; } }
@media print { .fab--wa { display: none; } }
@media (prefers-reduced-motion: reduce) { .anim-on .fab--wa { animation: none; } }
.footer__h-next { margin-top: 26px; }
.promo__badge--on { background: var(--green); }

/* ---------- Picardi Generation distributore Garofoli ---------- */
.dealer { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.dealer img { width: auto; height: 64px; object-fit: contain; background: #fff; border-radius: var(--radius-s); padding: 6px 10px; box-shadow: 0 4px 14px rgba(11,42,92,.08); }
.dealer__x { font: 600 1.4rem var(--font-head); color: var(--muted); }
.dealer__badge { display: inline-block; margin: 0 0 10px; padding: 6px 14px; border-radius: 999px; background: var(--green); color: #fff; font: 700 .8rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.dealer-box { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: clamp(22px, 4vw, 36px); background: var(--blue-100); border-radius: var(--radius); }
.dealer-box h2 { margin: 0 0 10px; }
.dealer-box .dealer { flex-direction: column; margin: 0; }
@media (max-width: 760px) { .dealer-box { grid-template-columns: 1fr; } .dealer-box .dealer { flex-direction: row; } }

/* ---------- lo stabilimento raccontato ---------- */
.story { margin-top: 44px; }
.story__intro { max-width: 760px; margin: 0 auto 34px; text-align: center; font-size: 1.12rem; color: var(--ink); }
.story__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; counter-reset: tappa; }
.story__steps li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(22px, 4vw, 48px); align-items: center; counter-increment: tappa; }
.story__steps li:nth-child(even) figure { order: 2; }
.story__steps figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.story__steps img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story__steps h3 { margin: 0 0 8px; font-size: 1.25rem; }
.story__steps h3::before { content: counter(tappa) ". "; color: var(--green); }
.story__steps p { margin: 0; }
@media (max-width: 760px) { .story__steps li { grid-template-columns: 1fr; } .story__steps li:nth-child(even) figure { order: 0; } }

/* ---------- Distributore Garofoli: riquadro e marchio animato (colori e forme da garofoli.com) ---------- */
.gbox { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(26px, 4vw, 48px); background: #f6f6f6; border-radius: var(--radius); border-left: 6px solid #3c673b; }
.gbox__brand { display: grid; justify-items: start; gap: 18px; }
.gbox__pair { display: flex; align-items: center; gap: 22px; }
.gbox__pair img { width: auto; height: 76px; }
.gbox__x { width: 1px; height: 64px; background: #c7ccc6; }
.gmark { display: block; width: clamp(180px, 24vw, 260px); height: auto; }
.gbox__pair--sm { margin-bottom: 14px; }
.gbox__pair--sm img { height: 58px; }
.gbox__pair--sm .gbox__x { height: 48px; }
.gbox__pair--sm .gmark { width: 160px; }
.gbox__tag { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font: 700 .8rem var(--font-head); letter-spacing: .28em; text-transform: uppercase; color: #3c673b; }
.gbox__tag::before { content: ""; width: 40px; height: 2px; background: #52904c; }
.gbox__tag span { color: #4a4a4a; font-weight: 500; }
.gbox__text h2 { margin: 0 0 12px; }
.gbox__text p { margin: 0 0 12px; }
.gbox__acts { margin-top: 20px !important; }
@media (max-width: 760px) { .gbox { grid-template-columns: 1fr; border-left: 0; border-top: 6px solid #3c673b; } }

.gmark__frame { fill: #3c673b; }
.gmark__field { fill: #52904c; }
.gmark__letters > *, .gmark__cube > * { fill: #fff; }
.gmark__shine { fill: #fff; opacity: 0; }
.gmark__field, .gmark__letters > *, .gmark__cube > *, .gmark__shine { transform-box: fill-box; transform-origin: center; }
.gmark__cube > :nth-child(1) { --dx: -26px; --dy: -26px; }
.gmark__cube > :nth-child(2) { --dx: 30px; --dy: -6px; }
.gmark__cube > :nth-child(3) { --dx: -10px; --dy: 30px; }
/* stato iniziale, solo se le animazioni sono attive */
.anim-on .gmark:not(.is-in) .gmark__field { transform: scaleX(0); }
.anim-on .gmark:not(.is-in) .gmark__letters > *, .anim-on .gmark:not(.is-in) .gmark__cube > * { opacity: 0; }
.anim-on .gmark.is-in .gmark__field { animation: gField .7s cubic-bezier(.65, 0, .35, 1) both; }
.anim-on .gmark.is-in .gmark__letters > * { animation: gLetter .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.45s + var(--i) * .09s); }
.anim-on .gmark.is-in .gmark__cube > * { animation: gCube .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(1.15s + var(--c) * .14s); }
.anim-on .gmark.is-in .gmark__shine { animation: gShine 6s ease-in-out 2.2s infinite; }
@keyframes gField { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gLetter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes gCube { from { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes gShine { 0% { opacity: 0; transform: translateX(0) skewX(-20deg); } 4% { opacity: .28; } 22% { opacity: .28; transform: translateX(640px) skewX(-20deg); } 24%, 100% { opacity: 0; transform: translateX(640px) skewX(-20deg); } }
@media (prefers-reduced-motion: reduce) { .gmark *, .gmark { animation: none !important; } .anim-on .gmark .gmark__letters > *, .anim-on .gmark .gmark__cube > * { opacity: 1 !important; } .anim-on .gmark .gmark__field { transform: none !important; } }

/* ---------- pagine sistema Ottostumm | Mogs (schema delle pagine ufficiali, animazioni nostre) ---------- */
.mhero { position: relative; display: flex; align-items: flex-end; min-height: min(82vh, 760px); padding: 120px 0 90px; color: #fff; overflow: hidden; background: #1d1d1d; }
.mhero__bg { position: absolute; inset: 0; }
.mhero__bg img { width: 100%; height: 100%; object-fit: cover; }
.mhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.72) 100%); }
.mhero__in { position: relative; z-index: 1; width: 100%; }
.mhero__kicker { margin: 0 0 6px; font: 600 clamp(.85rem, 1.4vw, 1.05rem) var(--font-head); letter-spacing: .42em; text-transform: uppercase; color: #e8ece6; }
.mhero__title { margin: 0; font: 700 clamp(4.2rem, 14vw, 11rem)/.92 var(--font-head); letter-spacing: -.02em; color: #fff; }
.mhero__sub { margin: 18px 0 0; font-size: 1.02rem; color: #e2e6ea; }
.mhero .crumbs { margin-bottom: 34px; }
.mhero__down { position: absolute; z-index: 1; left: 50%; bottom: 18px; width: 22px; height: 70px; margin-left: -11px; color: #fff; }
.mhero__down svg { width: 100%; height: 100%; }
.anim-on .mhero__bg img { animation: kenburns 18s ease-out both; }
.anim-on .mhero__kicker { animation: rise .9s .15s cubic-bezier(.22,1,.36,1) both; }
.anim-on .mhero__title { animation: rise 1.1s .3s cubic-bezier(.22,1,.36,1) both; }
.anim-on .mhero__sub, .anim-on .mhero .crumbs { animation: rise .9s .55s cubic-bezier(.22,1,.36,1) both; }
.anim-on .mhero__down svg { animation: mGiu 2.2s ease-in-out 1.2s infinite; }
@keyframes mGiu { 0%, 100% { transform: translateY(-6px); opacity: .55; } 50% { transform: translateY(8px); opacity: 1; } }

.mintro { max-width: 1000px; margin: 0 auto; display: grid; gap: 22px; }
.mintro p { margin: 0; font: 400 clamp(1.25rem, 2.3vw, 1.85rem)/1.5 var(--font-head); color: var(--ink); }
.mtitle { display: flex; align-items: center; gap: 14px; margin: 0 0 30px; font: 600 .95rem var(--font-head); letter-spacing: .3em; text-transform: uppercase; color: var(--ink); }
.mtitle::before { content: ""; width: 46px; height: 2px; background: var(--green); }
.mhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.mhead .mtitle { margin: 0; }
.mfig { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; background: #fff; }
.mfig img { display: block; width: 100%; height: auto; }
.mfig--nodo { max-width: 900px; margin-left: auto; margin-right: auto; padding: 10px; }
.mcta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 34px 0 44px; }
.mlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.mlist li { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-top: 1px solid #d6d9dd; font-size: 1.05rem; color: var(--ink); }
.mlist__n { flex: none; min-width: 2.2em; font: 700 1.3rem var(--font-head); color: var(--green); font-variant-numeric: tabular-nums; }
.mgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mgrid figure { margin: 0; }
.mgrid__img { overflow: hidden; border-radius: var(--radius-s); background: #fff; box-shadow: 0 6px 18px rgba(11,42,92,.08); margin: 0; }
.mgrid__img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.mgrid li:hover .mgrid__img img { transform: scale(1.06); }
.mgrid figcaption { padding: 12px 2px 0; font-size: .95rem; color: var(--ink); }
.mgrid figcaption small { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; }
.mgrid--mat { grid-template-columns: repeat(4, 1fr); }
.mfilter { display: flex; flex-wrap: wrap; gap: 8px; }
.mfilter button { padding: 8px 16px; border: 2px solid var(--blue); border-radius: 999px; background: #fff; color: var(--blue); font: 600 .85rem var(--font-head); cursor: pointer; transition: background .2s, color .2s; }
.mfilter button[aria-pressed="true"], .mfilter button:hover { background: var(--blue); color: #fff; }
.mmat { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.mmat h3 { margin: 0 0 10px; font-size: 1.4rem; }
@media (max-width: 960px) { .mgrid, .mgrid--mat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .mlist { grid-template-columns: 1fr; } .mmat { grid-template-columns: 1fr; } .mhero { min-height: 70vh; padding-bottom: 100px; } }

/* comparsa allo scorrimento (js/site.js aggiunge .is-in), con ritardo a scalare */
.mrev { transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1), clip-path 1.4s cubic-bezier(.65,0,.35,1); transition-delay: calc(var(--d, 0) * .12s); }
.anim-on .mrev:not(.is-in) { opacity: 0; transform: translateY(30px); }
.anim-on .mrev--wipe:not(.is-in) { opacity: 1; transform: none; clip-path: inset(0 100% 0 0 round var(--radius)); }
.mrev--wipe.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.anim-on .mrev--draw:not(.is-in) { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }
.mrev--draw.is-in { clip-path: inset(0 0 0 0); transition-duration: .9s, .9s, 2s; }
@media (prefers-reduced-motion: reduce) { .mrev, .mhero * { transition: none !important; animation: none !important; } .anim-on .mrev:not(.is-in) { opacity: 1; transform: none; clip-path: none; } }
.fabs { display: contents; }

/* ---------- apertura delle pagine prodotto ALsistem (schema delle schede di alsistem.it) ---------- */
.aprod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(92vh, 860px); background: #fff; }
.aprod__media { position: relative; display: flex; align-items: center; justify-content: center; background: #f2f3f5; overflow: hidden; }
.aprod__render { width: min(100%, 760px); height: auto; }
.aprod__body { align-self: center; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(40px, 6vw, 80px) clamp(28px, 5vw, 72px); max-width: 720px; }
.crumbs--dark { color: var(--muted); }
.crumbs--dark a { color: var(--blue); }
.crumbs--dark a:hover { color: var(--blue-900); }
.aprod__cat { margin: 18px 0 6px; font: 500 .82rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.aprod__title { margin: 0; font: 700 clamp(2.4rem, 5vw, 3.9rem)/1.02 var(--font-head); letter-spacing: .01em; text-transform: uppercase; color: var(--ink); }
.aprod__maker { margin: 12px 0 22px; font: 600 .95rem var(--font-head); color: var(--green); }
.aprod__intro { margin: 0 0 14px; font-size: 1.04rem; line-height: 1.65; color: var(--text); }
.aprod__neo { display: flex; gap: 10px; align-items: baseline; margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.aprod__neo b { flex: none; padding: 2px 8px; border-radius: 4px; background: var(--ink); color: #fff; font: 700 .72rem var(--font-head); letter-spacing: .08em; }
.aperf { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.aperf li { display: flex; gap: 12px; align-items: center; font-size: .86rem; line-height: 1.3; color: var(--muted); }
.aperf b { display: block; margin-top: 2px; font: 600 .98rem var(--font-head); color: var(--ink); }
.aperf__ico { flex: none; width: 50px; height: 50px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aperf__ring { stroke-width: 1.6; }
.aperf__ico text { fill: currentColor; stroke: none; font: 700 13px var(--font-head); }
.aperf__ico--aria { color: #1aa3a3; stroke: #1aa3a3; }
.aperf__ico--acqua { color: #1f6fbf; stroke: #1f6fbf; }
.aperf__ico--vento { color: #4a90c8; stroke: #4a90c8; }
.aperf__ico--acustica { color: #e07a1f; stroke: #e07a1f; }
.aperf__ico--effrazione { color: #c8322b; stroke: #c8322b; }
.aperf__ico--termico { color: #b08a12; stroke: #b08a12; }
.aperf__ico--misura { color: var(--blue); stroke: var(--blue); }
.aprod__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.adl { display: inline-flex; gap: 12px; align-items: center; font: 600 .9rem/1.25 var(--font-head); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); text-decoration: none; }
.adl svg { width: 32px; height: 40px; transition: transform .3s; }
.adl:hover { color: var(--blue); }
.adl:hover svg { transform: translateY(-3px); }
.agal-sec { padding-top: clamp(40px, 5vw, 64px); }
.agal__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.agal__head .mtitle { margin: 0; }
.agal__head p { margin: 0; font-size: .9rem; color: var(--muted); }
.agal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.agal a { display: block; overflow: hidden; border-radius: var(--radius-s); }
.agal img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1), filter .4s; }
.agal a:hover img, .agal a:focus-visible img { transform: scale(1.08); filter: brightness(1.05); }
@media (max-width: 1100px) { .aperf { grid-template-columns: repeat(2, minmax(0, 1fr)); } .agal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .aprod { grid-template-columns: 1fr; min-height: 0; }
  .aprod__media { padding: 12px 0 0; }
  .aprod__render { width: min(78%, 420px); }
  .aprod__body { padding: 28px var(--gutter) 44px; }
}
@media (max-width: 480px) { .aperf { gap: 18px 12px; } .aperf__ico { width: 42px; height: 42px; } .agal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* animazioni: il profilo entra e poi «respira», le icone si disegnano una dopo l'altra */
.anim-on .aprod__render { animation: aEntra 1.3s cubic-bezier(.22,1,.36,1) both, aRespira 7s ease-in-out 1.6s infinite; }
@keyframes aEntra { from { opacity: 0; transform: translateX(-60px) scale(.94) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes aRespira { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.anim-on .aprod__body > * { animation: rise .9s cubic-bezier(.22,1,.36,1) both; }
.anim-on .aprod__body > :nth-child(2) { animation-delay: .1s; }
.anim-on .aprod__body > :nth-child(3) { animation-delay: .2s; }
.anim-on .aprod__body > :nth-child(4) { animation-delay: .3s; }
.anim-on .aprod__body > :nth-child(n+5) { animation-delay: .4s; }
.anim-on .aperf li { animation: rise .7s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(.6s + var(--d) * .12s); }
.anim-on .aperf__ring { stroke-dasharray: 132; stroke-dashoffset: 132; animation: aTraccia 1.2s ease-out forwards; animation-delay: calc(.7s + var(--d, 0) * .12s); }
.aperf li:nth-child(1) .aperf__ring { --d: 0; } .aperf li:nth-child(2) .aperf__ring { --d: 1; } .aperf li:nth-child(3) .aperf__ring { --d: 2; }
.aperf li:nth-child(4) .aperf__ring { --d: 3; } .aperf li:nth-child(5) .aperf__ring { --d: 4; } .aperf li:nth-child(6) .aperf__ring { --d: 5; }
@keyframes aTraccia { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .aprod *, .aperf * { animation: none !important; } .anim-on .aperf__ring { stroke-dashoffset: 0; } }

/* ---------- showroom solo su appuntamento e tasti del centralino ---------- */
.appbadge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border-radius: 999px; background: var(--brand-red); color: #fff; font: 600 .82rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.appbadge svg { width: 17px; height: 17px; flex: none; }
.appbox { display: grid; gap: 10px; margin: 18px 0 20px; padding: 16px 18px; border-left: 4px solid var(--brand-red); border-radius: 0 var(--radius-s) var(--radius-s) 0; background: #fff; box-shadow: 0 6px 18px rgba(11,42,92,.08); }
.appbox p { margin: 0; }
.appbox .appbadge { justify-self: start; }
.anim-on .appbadge { animation: appPulse 2.6s ease-in-out 1s 3; }
@keyframes appPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(108,18,18,.45); } 50% { box-shadow: 0 0 0 9px rgba(108,18,18,0); } }
.tasto { display: inline-block; font-size: .88rem; color: var(--muted); }
.tasto b, .footer__note b, .reqinfo__note b { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; margin: 0 2px; border-radius: 6px; background: var(--blue); color: #fff; font: 700 .85em var(--font-head); }
.footer__note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 4px; padding-bottom: 22px; font-size: .88rem; }
.footer__note p { margin: 0; flex: 1 1 320px; }
@media (max-width: 600px) { .appbadge { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .appbadge { animation: none !important; } }

/* ---------- download di documenti aziendali ---------- */
.dlwrap { max-width: 760px; margin: 0 auto; }
.dlcard { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin: 18px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; color: var(--text); text-decoration: none; box-shadow: 0 6px 18px rgba(11,42,92,.06); transition: transform .3s, box-shadow .3s, border-color .3s; }
.dlcard:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow); color: var(--text); }
.dlcard__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--blue-100); color: var(--blue); }
.dlcard__ico svg { width: 28px; height: 28px; }
.dlcard__txt { display: grid; gap: 3px; }
.dlcard__txt strong { font: 600 1.08rem var(--font-head); color: var(--ink); }
.dlcard__txt small { color: var(--muted); font-size: .82rem; }
.dlcard__cta { padding: 10px 18px; border-radius: 999px; background: var(--green); color: #fff; font: 600 .85rem var(--font-head); text-transform: uppercase; letter-spacing: .03em; }
.dlcard:hover .dlcard__cta { background: var(--green-hover); }
@media (max-width: 560px) { .dlcard { grid-template-columns: auto 1fr; } .dlcard__cta { grid-column: 1 / -1; justify-self: start; } }

/* testata prodotto: varianti per foto (riempie il riquadro) e per render su fondo bianco */
.aprod--foto .aprod__media { align-items: stretch; }
.aprod--foto .aprod__render { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.aprod--render-bianco .aprod__media { background: #fff; }
.aprod--render .aprod__render { width: 100%; }
@media (max-width: 860px) { .aprod--foto .aprod__media { padding: 0; } .aprod--foto .aprod__render { width: 100%; height: auto; aspect-ratio: 4 / 3; } }
.anim-on .aprod--foto .aprod__render { animation: kenburns 18s ease-out both; }

/* ---------- staff ---------- */
.staff { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 24px; }
.staff__foto { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: linear-gradient(160deg, var(--blue-100), #dfe5ef); display: grid; place-items: end center; }
.staff__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.staff__p:hover .staff__foto img { transform: scale(1.05); }
.staff__foto svg { width: 70%; fill: #b9c4d6; }
.staff__rep { margin: 16px 0 2px; font: 600 .78rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.staff__p h3 { margin: 0; font-size: 1.15rem; }
.staff__vuoto { color: var(--muted); font-weight: 500; font-style: italic; }
.staff__ruolo { margin: 4px 0 0; color: var(--ink); font-size: .95rem; }
.staff__testo { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .staff { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- pagina di ringraziamento per le recensioni ---------- */
.thanks { padding: clamp(70px, 10vw, 130px) 0 clamp(60px, 8vw, 100px); text-align: center; background: radial-gradient(1200px 500px at 50% -10%, var(--blue-100), #fff 70%); }
.thanks__in { max-width: 760px; }
.thanks__stars { display: inline-flex; gap: 8px; margin-bottom: 18px; color: #f4b400; }
.thanks__stars svg { width: clamp(34px, 6vw, 50px); height: clamp(34px, 6vw, 50px); }
.anim-on .thanks__stars span { display: inline-block; animation: stella .7s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(.2s + var(--i) * .14s); }
@keyframes stella { from { opacity: 0; transform: scale(.2) rotate(-40deg); } to { opacity: 1; transform: none; } }
.thanks__kicker { margin: 0 0 6px; font: 600 .85rem var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.thanks h1 { margin: 0 0 22px; font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.08; }
.thanks__lead { font-size: 1.1rem; line-height: 1.65; }
.thanks__cta { margin: 34px 0 26px; }
.btn--big { padding: 18px 32px; font-size: 1rem; gap: 10px; }
.btn--big svg { width: 22px; height: 22px; color: #f4b400; }
.anim-on .thanks__cta .btn { animation: appPulse 2.4s ease-in-out 1.6s infinite; }
.thanks__steps { list-style: none; margin: 0 auto 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 680px; }
.thanks__steps li { display: grid; gap: 8px; justify-items: center; font-size: .92rem; color: var(--muted); }
.thanks__steps b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-head); }
.thanks__alt { font-size: .92rem; color: var(--muted); }
.thanks__after { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; max-width: 980px; margin: 0 auto; }
.thanks__after h2 { margin: 0 0 8px; }
.thanks__after p { margin: 0; }
@media (max-width: 560px) { .thanks__steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .thanks *, .staff * { animation: none !important; } }
.footer__note a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- pagina recensioni: stile premium, senza menu ---------- */
.header--min { position: relative; border-bottom: 1px solid rgba(201,164,92,.35); }
.header--min .header__bar { justify-content: center; }
.header__logo-min { width: 170px; height: auto; }
.gz { position: relative; display: grid; place-items: center; min-height: calc(100svh - 90px); padding: clamp(40px, 8vw, 90px) 16px; overflow: hidden; color: #fff;
  background: radial-gradient(900px 520px at 15% 0%, rgba(201,164,92,.22), transparent 60%), radial-gradient(800px 600px at 100% 100%, rgba(18,63,135,.55), transparent 60%), linear-gradient(160deg, #0a1730 0%, #0b2a5c 55%, #081328 100%); }
.gz::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 22px); pointer-events: none; }
.gz__card { position: relative; width: min(100%, 720px); padding: clamp(34px, 6vw, 64px) clamp(22px, 5vw, 60px); text-align: center; border: 1px solid rgba(201,164,92,.45); border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.gz__stars { display: inline-flex; gap: 6px; margin-bottom: 20px; color: #d9b45f; }
.gz__stars svg { width: clamp(26px, 5vw, 34px); height: clamp(26px, 5vw, 34px); filter: drop-shadow(0 4px 10px rgba(217,180,95,.45)); }
.gz__kicker { margin: 0 0 14px; font: 500 .78rem var(--font-head); letter-spacing: .32em; text-transform: uppercase; color: #d9b45f; }
.gz h1 { margin: 0 0 22px; font: 600 clamp(1.9rem, 5.4vw, 3rem)/1.15 var(--font-head); color: #fff; }
.gz__heart { display: inline-block; vertical-align: -.08em; color: #e0464e; }
.gz__heart svg { width: .9em; height: .9em; }
.gz__text { margin: 0 auto 34px; max-width: 560px; font-size: clamp(1rem, 2.4vw, 1.14rem); line-height: 1.75; color: #dbe3f1; }
.gz__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: min(100%, 420px); padding: 18px 26px; border-radius: 999px; overflow: hidden; background: linear-gradient(135deg, #f1d796, #c9a45c 55%, #a8843f); color: #1b1405; font: 600 1rem var(--font-head); letter-spacing: .02em; text-decoration: none; box-shadow: 0 14px 34px rgba(201,164,92,.35); transition: transform .3s, box-shadow .3s; }
.gz__btn svg { width: 22px; height: 22px; flex: none; }
.gz__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); }
.gz__btn:hover, .gz__btn:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(201,164,92,.5); color: #1b1405; }
.gz__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gz__thanks { margin: 30px 0 0; font-size: .98rem; font-style: italic; color: #b9c6dc; }
.gz-after { padding: clamp(48px, 7vw, 80px) 16px; background: #faf8f3; text-align: center; }
.gz-after__in { max-width: 640px; margin: 0 auto; }
.gz-after__ico { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; border: 1px solid #c9a45c; color: #a8843f; }
.gz-after__ico svg { width: 26px; height: 26px; }
.gz-after h2 { margin: 0 0 10px; font: 600 clamp(1.5rem, 4vw, 2rem) var(--font-head); color: var(--blue-900); }
.gz-after p { margin: 0 0 26px; color: var(--text); }
.gz-after__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 26px; }
.gz-after__btn { display: inline-block; padding: 15px 28px; border-radius: 999px; background: var(--blue-900); color: #fff; font: 600 .95rem var(--font-head); text-decoration: none; transition: background .3s, transform .3s; }
.gz-after__btn:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.gz-after__tel { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-900); text-decoration: none; font: 600 1.05rem var(--font-head); text-align: left; }
.gz-after__tel svg { width: 22px; height: 22px; color: #a8843f; }
.gz-after__tel small { display: block; font: 400 .8rem var(--font-body); color: var(--muted); }
.minifoot { padding: 22px 16px; background: #081328; color: #9fb0cc; font-size: .8rem; text-align: center; }
.minifoot p { margin: 4px 0; }
.minifoot a, .minifoot button { color: #d9e2f0; text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.anim-on .gz__card { animation: rise 1s cubic-bezier(.22,1,.36,1) both; }
.anim-on .gz__stars span { display: inline-block; animation: stella .7s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(.4s + var(--i) * .13s); }
.anim-on .gz__heart { animation: battito 1.6s ease-in-out 1.4s infinite; }
@keyframes battito { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
.anim-on .gz__btn::after { animation: luce 3.2s ease-in-out 1.6s infinite; }
@keyframes luce { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
@media (max-width: 480px) { .gz { min-height: calc(100svh - 76px); } .gz__btn { padding: 16px 18px; font-size: .95rem; } .gz-after__acts { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .gz *, .gz__btn::after { animation: none !important; } }
.staff__foto { position: relative; }
.staff__iniz { align-self: center; font: 600 clamp(2.6rem, 6vw, 3.6rem) var(--font-head); letter-spacing: .04em; color: var(--blue); }
.staff__attesa { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.8); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.staff__foto:has(.staff__iniz) { place-items: center; }

/* cantieri in corso */
.live { display: grid; gap: 30px; }
.live__card { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.live__img { position: relative; margin: 0; background: #e9edf3; }
.live__img img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.live__img figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(11,42,92,.75); color: #fff; font-size: .75rem; }
.live__body { padding: clamp(22px, 3vw, 34px); }
.live__body h3 { margin: 6px 0 2px; font-size: 1.35rem; }
.live__luogo { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.live__stato { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 12px; border-radius: 999px; background: #eaf4dc; color: var(--green); font: 600 .78rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
.live__stato span { width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); }
.anim-on .live__stato span { animation: liveDot 1.8s ease-in-out infinite; }
@keyframes liveDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(97,166,14,.6); } 50% { box-shadow: 0 0 0 7px rgba(97,166,14,0); } }
.live__dati { display: grid; gap: 6px; margin: 14px 0; font-size: .9rem; }
.live__dati div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.live__dati dt { color: var(--muted); }
.live__dati dd { margin: 0; color: var(--ink); }
.live .pills { margin-top: 10px; }
.filterbar__btn--live span { background: var(--green-light); color: #fff; }
@media (max-width: 860px) { .live__card { grid-template-columns: 1fr; } .live__img img { min-height: 0; aspect-ratio: 16 / 8; } .live__dati div { grid-template-columns: 1fr; gap: 0; } }
.live .pills { justify-content: flex-start; gap: 6px; } .live .pills li { padding: 5px 12px; font-size: .8rem; }
/* ambiti di fornitura (prodotti) */
.forn { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.forn__col { padding: 24px 22px; border-radius: var(--radius); background: #fff; box-shadow: 0 6px 18px rgba(11,42,92,.08); border-top: 4px solid var(--green-light); }
.forn__col h3 { margin: 0 0 12px; font-size: 1.05rem; color: var(--blue-900); }
.forn__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.forn__col li { position: relative; padding-left: 18px; font-size: .93rem; }
.forn__col li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.forn__settori { margin-top: 34px; text-align: center; }
.forn__settori h3 { margin: 0 0 14px; }
@media (max-width: 1000px) { .forn { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .forn { grid-template-columns: 1fr; } }
@media (min-width: 801px) { .stats:has(> div:nth-child(5)) { grid-template-columns: repeat(5, 1fr); } }
