/* =====================================================================
   MAGAZZINI OTTICI — "Kinetico"
   Art direction derived from the logo: bold, italic-forward, speed lines,
   warm + RED-forward, energetic. Not editorial-elegant, not clinical.
   Type: Archivo (display, heavy + italic) · Hanken Grotesk (body/labels)
   Color: warm white + warm black + bold brand RED + amber. No #000/#fff.
   ===================================================================== */

/* ----------------------------------------------------------------- *
 * 1. TOKENS
 * ----------------------------------------------------------------- */
:root {
  --paper:   oklch(0.973 0.006 72);
  --paper-2: oklch(0.950 0.009 70);
  --paper-3: oklch(0.918 0.013 66);
  --ink:     oklch(0.180 0.013 52);
  --ink-2:   oklch(0.305 0.013 50);
  --dark:    oklch(0.165 0.012 48);
  --dark-2:  oklch(0.205 0.012 48);

  --red:        oklch(0.567 0.214 27);
  --red-bright: oklch(0.640 0.222 30);
  --red-deep:   oklch(0.470 0.180 28);
  --red-wash:   color-mix(in oklch, var(--red) 10%, transparent);
  --on-red:     oklch(0.985 0.008 60);

  --amber: oklch(0.745 0.105 68);
  --wood:  oklch(0.610 0.060 56);
  --wa-green: oklch(0.72 0.17 152);

  --muted:   oklch(0.455 0.013 52);
  --muted-2: oklch(0.575 0.012 56);

  --on-dark:       oklch(0.955 0.007 72);
  --on-dark-muted: oklch(0.730 0.012 66);

  --line:      color-mix(in oklch, var(--ink) 15%, transparent);
  --line-2:    color-mix(in oklch, var(--ink) 8%, transparent);
  --line-dark: color-mix(in oklch, var(--on-dark) 18%, transparent);
  --line-red:  color-mix(in oklch, var(--on-red) 26%, transparent);

  --font-display: "Archivo", system-ui, -apple-system, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --fs-hero:  clamp(2.9rem, 1.3rem + 6.6vw, 7rem);
  --fs-h1:    clamp(2.5rem, 1.5rem + 4vw, 4.6rem);
  --fs-h2:    clamp(2rem, 1.3rem + 3vw, 3.5rem);
  --fs-h3:    clamp(1.4rem, 1.05rem + 1.4vw, 2rem);
  --fs-h4:    clamp(1.12rem, 1rem + .55vw, 1.35rem);
  --fs-body:  1.075rem;
  --fs-lead:  clamp(1.15rem, 1rem + .7vw, 1.45rem);
  --fs-kicker: 0.78rem;

  --section: clamp(4.5rem, 3rem + 8vw, 10rem);
  --gutter: clamp(1.25rem, .7rem + 2.6vw, 3.25rem);
  --container: 1280px;
  --narrow: 760px;

  --r-xs: 5px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;

  --sh-1: 0 1px 2px oklch(0.18 0.013 52 / .06), 0 3px 10px oklch(0.18 0.013 52 / .05);
  --sh-2: 0 14px 32px -16px oklch(0.18 0.013 52 / .34);
  --sh-3: 0 34px 64px -30px oklch(0.18 0.013 52 / .5);
  --sh-red: 0 16px 34px -14px oklch(0.567 0.214 27 / .5);

  --e: cubic-bezier(0.2, 0.8, 0.2, 1);
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t1: .24s; --t2: .5s; --t3: .85s;

  --header-h: 84px;
}

/* ----------------------------------------------------------------- *
 * 2. RESET & BASE
 * ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--red); color: var(--on-red); }

/* ----------------------------------------------------------------- *
 * 3. TYPOGRAPHY
 * ----------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: .98; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
p { text-wrap: pretty; }
strong { font-weight: 700; color: var(--ink); }
em { font-style: italic; }

.display { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-hero); line-height: .92; letter-spacing: -.035em; text-transform: none; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); font-weight: 400; max-width: 58ch; }
.muted { color: var(--muted); }

/* KINETIC accent word — italic red with skewed speed underline (from logo) */
.kx { font-style: italic; color: var(--red); position: relative; white-space: nowrap; }
.kx::after { content: ""; position: absolute; left: -.02em; right: -.04em; bottom: .015em; height: .1em; background: var(--red); transform: skewX(-18deg) scaleX(1); transform-origin: left; }
[data-reveal] .kx::after, .reveal-kx .kx::after { transform: skewX(-18deg) scaleX(0); transition: transform .7s var(--e-out) .25s; }
[data-reveal].is-in .kx::after, .reveal-kx.is-in .kx::after { transform: skewX(-18deg) scaleX(1); }
.serif-italic { font-style: italic; font-weight: 800; }

/* SPEED LINES — the signature mark (logo motion lines) */
.speedlines { display: inline-flex; flex-direction: column; gap: 3px; flex: none; }
.speedlines i { display: block; height: 3px; border-radius: 3px; background: var(--red); transform-origin: right; }
.speedlines i:nth-child(1) { width: 34px; }
.speedlines i:nth-child(2) { width: 23px; }
.speedlines i:nth-child(3) { width: 13px; }
.speedlines.is-light i { background: var(--amber); }
[data-reveal] .speedlines i { transform: scaleX(0); transition: transform .5s var(--e-out); }
[data-reveal] .speedlines i:nth-child(2) { transition-delay: .07s; }
[data-reveal] .speedlines i:nth-child(3) { transition-delay: .14s; }
[data-reveal].is-in .speedlines i { transform: scaleX(1); }

/* KICKER / eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-body); font-size: var(--fs-kicker); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--red); border-radius: 3px; }
.eyebrow.is-light { color: var(--amber); }
.eyebrow.is-light::before { background: var(--amber); }
.eyebrow.on-red { color: var(--on-red); }
.eyebrow.on-red::before { background: var(--on-red); }
.eyebrow.is-center { justify-content: center; }

/* ----------------------------------------------------------------- *
 * 4. LAYOUT
 * ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.is-narrow { max-width: var(--narrow); }
.section { padding-block: var(--section); position: relative; }
.section.is-tight { padding-block: clamp(3.2rem, 2.2rem + 5vw, 6rem); }

.grid { display: grid; gap: clamp(1.25rem, 2vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.bg-paper { background: var(--paper-2); }
.bg-bone { background: var(--paper-3); }
.bg-ink { background: var(--dark); color: var(--on-dark); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--on-dark); }
.bg-ink .lead, .bg-ink .muted { color: var(--on-dark-muted); }
.bg-red { background: var(--red); color: var(--on-red); }
.bg-red h1, .bg-red h2, .bg-red h3, .bg-red h4 { color: var(--on-red); }
.bg-red .lead { color: color-mix(in oklch, var(--on-red) 86%, transparent); }

/* MASTHEAD (section header) */
.masthead { display: grid; gap: 1.2rem; margin-bottom: clamp(2.4rem, 4vw, 3.8rem); }
.masthead-top { display: flex; align-items: center; gap: 1.1rem; }
.masthead h2 { max-width: 20ch; }
.masthead p { color: var(--muted); max-width: 56ch; }
.masthead.is-light p { color: var(--on-dark-muted); }

.section-head { max-width: 60ch; margin-bottom: clamp(2.4rem, 4vw, 3.4rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: 1.1rem; color: var(--muted); }

/* ----------------------------------------------------------------- *
 * 5. BUTTONS — bold, confident, friendly
 * ----------------------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1rem 1.6rem; border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: .96rem; font-weight: 800; letter-spacing: -.005em;
  color: var(--fg); background: var(--bg); border: 2px solid var(--bg);
  transition: transform var(--t1) var(--e), box-shadow var(--t1) var(--e), background var(--t1) var(--e), color var(--t1) var(--e), border-color var(--t1) var(--e);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform var(--t1) var(--e); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--sh-2); will-change: transform; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(-1px); }
.btn--red { --bg: var(--red); --fg: var(--on-red); }
.btn--red:hover { --bg: var(--red-deep); box-shadow: var(--sh-red); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); border-color: var(--ink); }
.btn--on-dark { --bg: var(--paper); --fg: var(--ink); }
.btn--on-dark:hover { --bg: var(--on-dark); }
.btn--on-red { --bg: var(--on-red); --fg: var(--red); border-color: var(--on-red); }
.btn--on-red:hover { --bg: transparent; --fg: var(--on-red); }
.btn--ghost-light { --bg: transparent; --fg: var(--on-dark); border-color: var(--line-dark); }
.btn--ghost-light:hover { --bg: var(--paper); --fg: var(--ink); border-color: var(--paper); }
.btn--ghost-red { --bg: transparent; --fg: var(--on-red); border-color: var(--line-red); }
.btn--ghost-red:hover { --bg: var(--on-red); --fg: var(--red); border-color: var(--on-red); }
.btn--wa { --bg: oklch(0.72 0.17 152); --fg: #fff; }
.btn--wa:hover { --bg: oklch(0.62 0.15 158); }
.btn-sm { padding: .65rem 1.15rem; font-size: .86rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .96rem; color: var(--ink); padding-bottom: 5px; position: relative; }
.link-arrow::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; border-radius: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform var(--t2) var(--e-out); }
.link-arrow svg { width: 1.15em; height: 1.15em; transition: transform var(--t1) var(--e); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow:hover svg { transform: translateX(5px); }
.bg-ink .link-arrow, .bg-red .link-arrow { color: var(--on-dark); }
.bg-red .link-arrow { color: var(--on-red); }
.bg-red .link-arrow::after { background: var(--on-red); }

/* ----------------------------------------------------------------- *
 * 6. HEADER / NAV
 * ----------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: height var(--t2) var(--e), border-color var(--t2) var(--e); border-bottom: 2px solid transparent; }
.site-header::before { content: ""; position: absolute; inset: 0; background: color-mix(in oklch, var(--paper) 88%, transparent); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); opacity: 0; transition: opacity var(--t2) var(--e); z-index: -1; }
.site-header.is-scrolled { height: 66px; border-bottom-color: var(--ink); }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand-logo { display: flex; align-items: center; color: var(--ink); flex: none; }
.brand-logo svg, .brand-logo img { width: clamp(154px, 20vw, 192px); height: auto; transition: width var(--t2) var(--e); }
.is-scrolled .brand-logo svg, .is-scrolled .brand-logo img { width: clamp(142px, 18vw, 168px); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-links { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.9rem); }
.nav-link { position: relative; font-size: .94rem; font-weight: 700; color: var(--ink-2); padding: .4rem 0; transition: color var(--t1) var(--e); }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 3px; border-radius: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform var(--t2) var(--e-out); }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: .75rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2.5px; border-radius: 3px; background: var(--ink); transition: transform var(--t1) var(--e), opacity var(--t1); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 400px); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: calc(var(--header-h) + 1.5rem) 2rem 2rem; background: var(--paper-2); box-shadow: var(--sh-3); transform: translateX(100%); transition: transform var(--t2) var(--e); overflow-y: auto; }
  .nav.is-open { transform: translateX(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: 1.1rem 0; font-size: 1.7rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .header-cta { flex-direction: column; align-items: stretch; margin-top: 1.5rem; }
  .header-cta .btn { width: 100%; }
}
.nav-backdrop { position: fixed; inset: 0; z-index: 99; background: oklch(0.165 0.012 48 / .5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity var(--t2), visibility var(--t2); }
.nav-backdrop.is-open { opacity: 1; visibility: visible; }
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 101; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; will-change: transform; }

/* ----------------------------------------------------------------- *
 * 7. HERO
 * ----------------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(1.25rem, 3.5vw, 3rem)); padding-bottom: clamp(2.5rem, 5vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: stretch; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } }
.hero-copy { max-width: 660px; align-self: center; padding-block: clamp(.5rem, 2vw, 1.5rem); }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.5rem, 1.2rem + 4vw, 4.9rem); line-height: .92; letter-spacing: -.04em; margin-top: 1.4rem; }
.hero .lead { margin-top: 1.5rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-kicker { display: inline-flex; align-items: center; gap: .9rem; }

.hero-visual { display: flex; }
.hero-figure { position: relative; overflow: hidden; border-radius: var(--r-md); width: 100%; height: 100%; min-height: 460px; background: var(--paper-3); box-shadow: var(--sh-3); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 980px) { .hero-figure { aspect-ratio: 4 / 5; min-height: 0; height: auto; } .hero-visual { display: block; } }
.hero-tab { position: absolute; left: 0; bottom: 1.6rem; background: var(--red); color: var(--on-red); padding: .7rem 1.1rem .7rem 1.4rem; display: flex; align-items: center; gap: .7rem; box-shadow: var(--sh-red); }
.hero-tab .n { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: -.03em; }
.hero-tab .l { font-size: .76rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: .04em; opacity: .92; }
@media (max-width: 980px) { .hero-visual { max-width: 440px; margin-top: 1.5rem; } }

/* compact brand bar under hero */
.hero-brands { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 2px solid var(--ink); padding-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.8rem; }
.hero-brands .lbl { font-weight: 800; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-brands .bn { font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 1.4vw, 1.25rem); color: var(--ink); letter-spacing: -.01em; }

/* ----------------------------------------------------------------- *
 * 8. FEATURE (text + image)
 * ----------------------------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.feature.is-reverse .feature-media { order: 2; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } .feature.is-reverse .feature-media { order: 0; } }
.feature-media { position: relative; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 5 / 4; background: var(--paper-3); box-shadow: var(--sh-2); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t3) var(--e); }
.feature:hover .feature-media img { transform: scale(1.045); }
.feature h2 { margin: 1.1rem 0 1.3rem; }
.feature-list { margin-top: 1.7rem; display: grid; gap: 1.1rem; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; }
.feature-list .ico { flex: none; width: 26px; height: 26px; color: var(--red); margin-top: 1px; }
.feature-list .ico svg { width: 20px; height: 20px; }
.feature-list b { font-weight: 800; }
.feature-list span.t { color: var(--muted); }

/* ----------------------------------------------------------------- *
 * 9. SERVICES — editorial list with kinetic codes
 * ----------------------------------------------------------------- */
.svc-list { border-top: 2px solid var(--ink); }
.svc-row { display: grid; grid-template-columns: 64px 1fr auto; gap: clamp(1rem, 3vw, 2.4rem); align-items: center; padding: clamp(1.5rem, 2.6vw, 2.2rem) 0; border-bottom: 1px solid var(--line); transition: padding-left var(--t2) var(--e), background var(--t2) var(--e); position: relative; }
.svc-row::before { content: ""; position: absolute; left: 0; top: -1px; height: calc(100% + 2px); width: 0; background: var(--red-wash); z-index: -1; transition: width var(--t2) var(--e); }
.svc-row:hover { padding-left: 16px; }
.svc-row:hover::before { width: 100%; }
.svc-row .code, .svc-row .n { font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .04em; color: var(--red); }
.svc-row .svc-main h3 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); margin-bottom: .35rem; }
.svc-row .svc-main p, .svc-row .svc-desc { color: var(--muted); font-size: .98rem; max-width: 62ch; }
.svc-row .svc-ico { width: 34px; height: 34px; color: var(--ink-2); justify-self: end; transition: transform var(--t2) var(--e), color var(--t2) var(--e); }
.svc-row:hover .svc-ico { color: var(--red); transform: translateX(5px); }
@media (max-width: 780px) { .svc-row { grid-template-columns: 48px 1fr; } .svc-row .svc-ico { display: none; } }

/* CARD — warm, bold top speed-rule */
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.5rem, 2.4vw, 2rem); overflow: hidden; transition: transform var(--t2) var(--e), box-shadow var(--t2) var(--e), border-color var(--t2) var(--e); }
.card::before { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 0; background: var(--red); transition: width var(--t2) var(--e); }
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: transparent; }
.card:hover::before { width: 100%; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--red); background: var(--red-wash); border-radius: var(--r-sm); margin-bottom: 1.2rem; transition: background var(--t2) var(--e), color var(--t2) var(--e); }
.card-icon svg { width: 25px; height: 25px; }
.card:hover .card-icon { background: var(--red); color: var(--on-red); }
.card h3 { margin-bottom: .5rem; font-size: var(--fs-h3); }
.card p { color: var(--muted); font-size: .97rem; }
.card .card-index { position: absolute; top: 1.4rem; right: 1.4rem; font-family: var(--font-display); font-weight: 800; font-size: .8rem; color: var(--muted-2); }

/* ----------------------------------------------------------------- *
 * 10. MARQUEE + BRAND GRID
 * ----------------------------------------------------------------- */
.marquee { position: relative; overflow: hidden; padding-block: clamp(1.1rem, 2.2vw, 1.8rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; gap: clamp(1.6rem, 3.5vw, 3.5rem); animation: marquee 40s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(1.8rem, 1rem + 2.6vw, 3.2rem); letter-spacing: -.02em; color: var(--on-dark); white-space: nowrap; display: flex; align-items: center; gap: clamp(1.6rem, 3.5vw, 3.5rem); text-transform: uppercase; }
.marquee-item::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 860px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
.brand-cell { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 1.2rem; text-align: center; overflow: hidden; transition: background var(--t2) var(--e); }
.brand-cell .code { position: absolute; top: .7rem; left: .8rem; font-family: var(--font-display); font-weight: 800; font-size: .62rem; letter-spacing: .06em; color: var(--muted-2); transition: color var(--t2) var(--e); }
.brand-cell .bn { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.05rem, 1.6vw, 1.5rem); letter-spacing: -.02em; color: var(--ink); transition: color var(--t2) var(--e), transform var(--t2) var(--e); }
.brand-cell .bt { position: absolute; bottom: .8rem; left: 0; right: 0; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); opacity: 0; transform: translateY(6px); transition: opacity var(--t2) var(--e), transform var(--t2) var(--e); }
.brand-cell:hover { background: var(--red); }
.brand-cell:hover .bn { color: var(--on-red); transform: scale(1.04); }
.brand-cell:hover .code { color: var(--on-red); }
.brand-cell:hover .bt { opacity: 1; transform: translateY(0); color: color-mix(in oklch, var(--on-red) 85%, transparent); }

/* ----------------------------------------------------------------- *
 * 11. SEDI
 * ----------------------------------------------------------------- */
.sede-card { display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform var(--t2) var(--e), box-shadow var(--t2) var(--e); }
.sede-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.sede-figure { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.sede-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t3) var(--e); }
.sede-card:hover .sede-figure img { transform: scale(1.05); }
.sede-flag { position: absolute; top: .9rem; left: .9rem; background: var(--ink); color: var(--paper); font-weight: 800; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .45rem .8rem; border-radius: var(--r-xs); }
.sede-flag.is-red { background: var(--red); color: var(--on-red); }
.sede-body { padding: clamp(1.5rem, 2.5vw, 2.1rem); }
.sede-body h3 { font-size: var(--fs-h3); }
.sede-meta { margin: 1.1rem 0 1.4rem; display: grid; gap: .7rem; }
.sede-meta li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; color: var(--ink-2); font-size: .96rem; }
.sede-meta .ico { flex: none; width: 20px; height: 20px; color: var(--red); margin-top: 2px; }
.sede-hours { font-variant-numeric: tabular-nums; }
.sede-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.hours-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.hours-table th { font-weight: 800; color: var(--ink); }
.hours-table td { color: var(--muted); text-align: right; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--red); }
.hours-table .closed { color: var(--muted-2); }

/* ----------------------------------------------------------------- *
 * 12. CTA BAND (drenched RED — the brand color moment)
 * ----------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--red); color: var(--on-red); padding: clamp(2.8rem, 6vw, 5.5rem); border-radius: var(--r-lg); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 120%, oklch(0.47 0.18 28 / .6), transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--on-red); margin: 1.1rem auto 1.2rem; max-width: 16ch; }
.cta-band .lead { color: color-mix(in oklch, var(--on-red) 88%, transparent); max-width: 50ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-tile { display: flex; flex-direction: column; gap: .35rem; padding: clamp(1.6rem, 2.6vw, 2.2rem); background: var(--paper); border-right: 1px solid var(--line); transition: background var(--t2) var(--e); }
.contact-tile:last-child { border-right: 0; }
.contact-tile:hover { background: var(--paper-2); }
@media (max-width: 760px) { .contact-tile { border-right: 0; border-bottom: 1px solid var(--line); } .contact-tile:last-child { border-bottom: 0; } }
.contact-tile .ico { width: 46px; height: 46px; display: grid; place-items: center; color: var(--on-red); background: var(--red); border-radius: var(--r-sm); margin-bottom: .9rem; }
.contact-tile .ico svg { width: 22px; height: 22px; }
.contact-tile .k { font-weight: 800; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-tile .v { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; color: var(--ink); }

.map-frame { position: relative; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 16 / 9; background: var(--paper-3); border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 2rem; background: repeating-linear-gradient(-45deg, var(--paper-2), var(--paper-2) 16px, var(--paper-3) 16px, var(--paper-3) 32px); }
.map-consent p { max-width: 38ch; color: var(--muted); font-size: .92rem; }

/* ----------------------------------------------------------------- *
 * 13. PAGE HERO
 * ----------------------------------------------------------------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); padding-bottom: clamp(2rem, 4vw, 3.5rem); position: relative; }
.page-hero .lead { margin-top: 1.4rem; max-width: 56ch; }
.page-hero h1 { font-size: var(--fs-hero); font-weight: 900; letter-spacing: -.04em; line-height: .92; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.8rem; }
.breadcrumb a { color: var(--muted); transition: color var(--t1); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb [aria-current] { color: var(--ink); }
.page-hero.is-dark { background: var(--dark); color: var(--on-dark); }
.page-hero.is-dark h1 { color: var(--on-dark); }
.page-hero.is-dark .breadcrumb, .page-hero.is-dark .breadcrumb a { color: var(--on-dark-muted); }
.page-hero.is-dark .lead { color: var(--on-dark-muted); }

/* ----------------------------------------------------------------- *
 * 14. FOOTER
 * ----------------------------------------------------------------- */
.site-footer { background: oklch(0.150 0.012 48); color: var(--on-dark); padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: clamp(2rem, 4vw, 3rem); padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 920px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand-logo img { width: 212px; filter: brightness(0) invert(1); opacity: .94; }
.footer-brand p { color: var(--on-dark-muted); margin-top: 1.2rem; max-width: 34ch; font-size: .95rem; }
.footer-col h4 { font-family: var(--font-body); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 1.2rem; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a, .footer-col li { color: var(--on-dark-muted); font-size: .95rem; transition: color var(--t1) var(--e); }
.footer-col a:hover { color: var(--on-dark); }
.footer-col .strong-line { color: var(--on-dark); font-weight: 700; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.4rem; }
.footer-social a { width: 42px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--line-dark); display: grid; place-items: center; color: var(--on-dark-muted); transition: all var(--t1) var(--e); }
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; padding-block: 1.8rem; }
.footer-legal { color: var(--on-dark-muted); font-size: .82rem; line-height: 1.6; max-width: 72ch; }
.footer-legal strong { color: var(--on-dark); font-weight: 700; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; font-size: .82rem; font-weight: 700; }
.footer-meta a { color: var(--on-dark-muted); }
.footer-meta a:hover { color: var(--on-dark); }
.footer-credit { font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: oklch(0.5 0.012 60); }

/* ----------------------------------------------------------------- *
 * 15. WHATSAPP WIDGET
 * ----------------------------------------------------------------- */
.wa-widget { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.wa-fab { width: 60px; height: 60px; border-radius: 50%; background: oklch(0.72 0.17 152); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -8px oklch(0.72 0.17 152 / .55), var(--sh-2); transition: transform var(--t1) var(--e); position: relative; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 31px; height: 31px; }
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid oklch(0.72 0.17 152); animation: wa-ping 2.8s var(--e-out) infinite; }
@keyframes wa-ping { 0% { transform: scale(1); opacity: .65; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-fab::after { animation: none; } }
.wa-panel { width: min(86vw, 320px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3); overflow: hidden; transform-origin: bottom right; transform: scale(.9) translateY(10px); opacity: 0; visibility: hidden; transition: transform var(--t2) var(--e), opacity var(--t2), visibility var(--t2); }
.wa-panel.is-open { transform: scale(1) translateY(0); opacity: 1; visibility: visible; }
.wa-panel-head { background: oklch(0.52 0.10 165); color: #fff; padding: 1.1rem 1.25rem; display: flex; gap: .85rem; align-items: center; }
.wa-panel-head .mark { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.wa-panel-head .mark svg { width: 26px; height: 26px; }
.wa-panel-head .t { font-weight: 800; font-size: 1rem; }
.wa-panel-head .s { font-size: .76rem; opacity: .85; }
.wa-panel-body { padding: 1.25rem; }
.wa-bubble { background: var(--paper-3); border-radius: 3px 14px 14px 14px; padding: .85rem 1rem; font-size: .9rem; color: var(--ink-2); }
.wa-bubble .name { font-weight: 800; color: var(--ink); font-size: .8rem; display: block; margin-bottom: .25rem; }
.wa-panel-body .btn { width: 100%; margin-top: 1rem; }
.wa-close { position: absolute; top: .9rem; right: .9rem; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); }
.wa-close:hover { background: rgba(255,255,255,.28); }

/* ----------------------------------------------------------------- *
 * 16. COOKIE BANNER
 * ----------------------------------------------------------------- */
.cookie-banner { position: fixed; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 95; width: min(92vw, 430px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3); padding: 1.5rem; transform: translateY(18px); opacity: 0; visibility: hidden; transition: transform var(--t2) var(--e), opacity var(--t2), visibility var(--t2); }
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-banner h4 { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.cookie-banner h4 svg { width: 22px; height: 22px; color: var(--red); }
.cookie-banner p { font-size: .88rem; color: var(--muted); }
.cookie-banner p a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.cookie-actions .btn { flex: 1; min-width: 120px; }

/* ----------------------------------------------------------------- *
 * 17. PROSE
 * ----------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-h3); margin: 2.6rem 0 1rem; }
.prose h3 { font-size: var(--fs-h4); margin: 1.8rem 0 .7rem; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 1rem; line-height: 1.72; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose ul li { margin-bottom: .5rem; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.prose strong { color: var(--ink); }
.prose .updated { font-weight: 700; font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-3); font-weight: 800; }

/* ----------------------------------------------------------------- *
 * 18. TIMELINE / GALLERY / STAT
 * ----------------------------------------------------------------- */
.timeline { position: relative; display: grid; margin-top: 1rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line-dark); }
.tl-item { position: relative; padding: 0 0 2.4rem 2.8rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); }
.tl-item .yr { font-weight: 800; font-size: .72rem; letter-spacing: .1em; color: var(--amber); text-transform: uppercase; }
.tl-item h3 { font-size: var(--fs-h4); margin: .35rem 0 .5rem; color: var(--on-dark); }
.tl-item p { color: var(--on-dark-muted); font-size: .95rem; max-width: 52ch; }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(.5rem, 1vw, .85rem); }
.gallery .g-main { grid-row: 1 / 3; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--r-sm); margin: 0; background: var(--paper-3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t3) var(--e); }
.gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .g-main { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 16/10; } }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
@media (max-width: 760px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat-band .sb { padding: 1.7rem 1.2rem 1.7rem 0; border-right: 1px solid var(--line); }
.stat-band .sb:last-child { border-right: 0; }
@media (max-width: 760px) { .stat-band .sb:nth-child(2) { border-right: 0; } }
.stat-band .sb .num { font-family: var(--font-display); font-size: clamp(2.2rem, 1.5rem + 2vw, 3.4rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.stat-band .sb .num .unit { color: var(--red); }
.stat-band .sb .lbl { margin-top: .6rem; font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bg-ink .stat-band, .bg-red .stat-band { border-color: currentColor; }
.bg-ink .stat-band .sb, .bg-red .stat-band .sb { border-color: var(--line-dark); }
.bg-ink .stat-band .sb .lbl { color: var(--on-dark-muted); }
.bg-red .stat-band .sb { border-color: var(--line-red); }
.bg-red .stat-band .sb .num, .bg-red .stat-band .sb .num .unit { color: var(--on-red); }
.bg-red .stat-band .sb .lbl { color: color-mix(in oklch, var(--on-red) 76%, transparent); }

/* value props on red */
.vp { border-top: 2px solid var(--line-red); padding-top: 1.1rem; }
.vp .vp-ico { width: 32px; height: 32px; color: var(--on-red); margin-bottom: .7rem; }
.vp h4 { color: var(--on-red); margin-bottom: .35rem; }
.vp p { color: color-mix(in oklch, var(--on-red) 80%, transparent); font-size: .95rem; }

/* ----------------------------------------------------------------- *
 * 19. ICONS
 * ----------------------------------------------------------------- */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--solid { fill: currentColor; stroke: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ----------------------------------------------------------------- *
 * 20. MOTION
 * ----------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--t3) var(--e-out), transform var(--t3) var(--e-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="focus"] { transform: translateY(20px) scale(.98); }
[data-reveal="focus"].is-in { transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="left"].is-in, [data-reveal="right"].is-in { transform: none; }
[data-reveal-delay="1"]{transition-delay:.06s}[data-reveal-delay="2"]{transition-delay:.12s}[data-reveal-delay="3"]{transition-delay:.18s}[data-reveal-delay="4"]{transition-delay:.24s}[data-reveal-delay="5"]{transition-delay:.3s}[data-reveal-delay="6"]{transition-delay:.36s}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-reveal] .kx::after, [data-reveal] .speedlines i { transform: skewX(-18deg) scaleX(1) !important; transition: none !important; }
  [data-reveal] .speedlines i { transform: scaleX(1) !important; }
}

/* ----------------------------------------------------------------- *
 * 21. UTIL
 * ----------------------------------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.flow > * + * { margin-top: 1.1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border: 1.5px solid var(--line); padding: .42rem .8rem; border-radius: var(--r-xs); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.pill.is-open .dot { background: oklch(0.66 0.16 152); box-shadow: 0 0 0 3px oklch(0.66 0.16 152 / .22); }
.divider { height: 2px; background: var(--ink); border: 0; margin-block: var(--section) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: .7rem 1.2rem; border-radius: var(--r-sm); font-weight: 700; transition: top var(--t1) var(--e); }
.skip-link:focus { top: 1rem; }
.no-scroll { overflow: hidden; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list .pill { text-transform: none; letter-spacing: 0; font-size: .84rem; font-weight: 700; }
.speed-rule { display: flex; flex-direction: column; gap: 3px; width: 56px; }
.speed-rule span { height: 3px; border-radius: 3px; background: var(--red); }
.speed-rule span:nth-child(1) { width: 100%; }
.speed-rule span:nth-child(2) { width: 66%; }
.speed-rule span:nth-child(3) { width: 36%; }

/* ----------------------------------------------------------------- *
 * 24. SEDE GALLERY (fuori + dentro, etichettata)
 * ----------------------------------------------------------------- */
.sede-gallery { display: grid; gap: clamp(.5rem, 1vw, .8rem); }
.sg-hero { position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--r-md); box-shadow: var(--sh-1); }
.sg-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t3) var(--e); }
.sg-hero:hover img { transform: scale(1.03); }
.sg-row { display: grid; grid-template-columns: repeat(var(--sg-cols, 4), 1fr); gap: clamp(.5rem, 1vw, .8rem); }
.sg-row figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); margin: 0; background: var(--paper-3); }
.sg-row img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t3) var(--e); }
.sg-row figure:hover img { transform: scale(1.05); }
.sg-cap { position: absolute; left: .55rem; bottom: .55rem; z-index: 2; background: color-mix(in oklch, var(--ink) 58%, transparent); color: var(--paper); font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .55rem; border-radius: var(--r-xs); backdrop-filter: blur(3px); }
.sg-cap.is-red { background: color-mix(in oklch, var(--red) 88%, transparent); }
@media (max-width: 760px) { .sg-row { grid-template-columns: repeat(2, 1fr) !important; } .sg-hero { aspect-ratio: 16 / 10; } }

/* ----------------------------------------------------------------- *
 * 25. CTA SECTION DECORATION (kinetic speed stripes, animated)
 * ----------------------------------------------------------------- */
.section:has(.cta-band) { position: relative; }
.section:has(.cta-band)::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(56% 76% at 50% 52%, color-mix(in oklch, var(--red) 6%, transparent), transparent 72%);
}
.section:has(.cta-band) > .container { position: relative; z-index: 1; }
.cta-band { box-shadow: 0 38px 72px -36px color-mix(in oklch, var(--red) 58%, transparent); }

/* ----------------------------------------------------------------- *
 * 26. PREZZI / OUTLET / CARD CLIENTI
 * ----------------------------------------------------------------- */
/* Badge "offerta" ambra, per evidenziare outlet / novità / card */
.badge-offer { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-body); font-weight: 800; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--amber); padding: .38rem .7rem; border-radius: var(--r-xs); }

/* Striscia promo rossa (es. Card clienti) — testo a sinistra, CTA a destra */
.promo-strip { position: relative; overflow: hidden; margin-top: clamp(1.6rem, 3vw, 2.6rem); background: var(--red); color: var(--on-red); border-radius: var(--r-lg); padding: clamp(1.8rem, 3.6vw, 3rem); display: grid; grid-template-columns: 1fr auto; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: center; box-shadow: 0 30px 60px -34px color-mix(in oklch, var(--red) 60%, transparent); }
.promo-strip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 130% at 100% 0%, oklch(0.47 0.18 28 / .55), transparent 55%); pointer-events: none; }
.promo-strip > * { position: relative; z-index: 1; }
.promo-strip h3 { color: var(--on-red); font-size: var(--fs-h3); margin: .85rem 0 .5rem; }
.promo-strip p { color: color-mix(in oklch, var(--on-red) 88%, transparent); max-width: 54ch; }
.promo-strip .badge-offer { background: var(--on-red); color: var(--red); }
@media (max-width: 720px) { .promo-strip { grid-template-columns: 1fr; } .promo-strip .btn { width: 100%; } }

/* Tag "zona outlet" nelle liste servizi/sedi */
.pill.is-outlet { color: var(--red); border-color: color-mix(in oklch, var(--red) 40%, transparent); background: var(--red-wash); }

/* ----------------------------------------------------------------- *
 * 28. FAQ — accordion nativo <details> (SEO-friendly, no JS)
 * ----------------------------------------------------------------- */
.faq { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.3rem 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); line-height: 1.2; letter-spacing: -.01em; color: var(--ink); transition: color var(--t1) var(--e); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-item summary::after { content: ""; flex: none; width: 11px; height: 11px; margin: 2px 6px 0 0; border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(45deg); transition: transform var(--t2) var(--e); }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item[open] summary { color: var(--red); }
.faq-a { padding: 0 0 1.5rem; }
.faq-a p { color: var(--muted); font-size: 1rem; max-width: 68ch; }
.faq-a a { color: var(--red); font-weight: 700; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

/* ----------------------------------------------------------------- *
 * 27. MOBILE — esperienza dedicata (action bar sticky, centrature, touch)
 * ----------------------------------------------------------------- */
/* Barra azioni fissa in basso (solo mobile): Chiama + WhatsApp.
   Sostituisce il FAB flottante per un'esperienza mobile "app-like". */
.mobile-bar { display: none; }
.mb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; height: 54px; border-radius: var(--r-sm); font-family: var(--font-body); font-weight: 800; font-size: 1rem; letter-spacing: -.005em; border: 2px solid transparent; transition: transform var(--t1) var(--e), filter var(--t1) var(--e); }
.mb-btn svg { width: 1.25em; height: 1.25em; flex: none; }
.mb-btn:active { transform: translateY(1px); }
.mb-call { background: var(--ink); color: var(--paper); }
.mb-wa { background: var(--wa-green); color: #fff; }
.mb-wa:active { filter: brightness(.95); }

@media (max-width: 767px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
    padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom, 0px));
    background: color-mix(in oklch, var(--paper) 90%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 32px -20px oklch(0.18 0.013 52 / .55);
  }
  .wa-widget { display: none; }            /* su mobile c'è la barra, niente FAB */
  .site-footer { padding-bottom: 88px; }   /* spazio per la barra fissa */
  .cookie-banner { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* CTA a piena larghezza + stack su schermi piccoli (tap comodo) */
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .sede-actions { flex-direction: column; align-items: stretch; }
  .sede-actions .btn { width: 100%; }
  .btn { padding: 1.05rem 1.5rem; }        /* altezza tap ~52px */
  .btn-sm { padding: .85rem 1.2rem; font-size: .9rem; }
}

/* Footer centrato su mobile ("loghetti" e testi tutti al centro) */
@media (max-width: 620px) {
  .footer-top { text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand p { margin-inline: auto; }
  .footer-social { justify-content: center; }
  .footer-social a { width: 46px; height: 46px; }
  .footer-col ul { justify-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1.2rem; }
  .footer-legal { margin-inline: auto; }
  .footer-meta { justify-content: center; }
  .footer-credit { text-align: center; }
}
