/* ==========================================================================
   Ventura — Roven Carta
   Foglio di stile unico. I token qui sotto sono la fonte di verità per
   colori, tipografia, spaziature e raggi: modificali qui e si aggiorna tutto.
   ========================================================================== */

/* ---------- Font (self-hosted, nessuna richiesta esterna) ---------- */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-condensed-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-condensed-600.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
  /* Marchio: bordeaux del logo */
  --brand-950: #22080e;
  --brand-900: #2f0d15;
  --brand-800: #4d1523;
  --brand-700: #6f1f33;
  --brand-600: #7d1f33; /* colore principale */
  --brand-500: #8e2f45;
  --brand-400: #b06477;
  --brand-300: #e4b8c1;
  --brand-200: #f3dde2;
  --brand-100: #fbf1f3;

  /* Neutri caldi */
  --ink: #1c1a1b;
  --ink-soft: #3a3638;
  --muted: #5f5a5c;
  --line: rgba(28, 26, 27, 0.12);
  --line-strong: rgba(28, 26, 27, 0.22);
  --bg: #fcfafa;
  --surface: #ffffff;
  --surface-tint: #f6f1f2;

  /* Tipografia */
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: clamp(1.45rem, 1.2rem + 0.9vw, 1.75rem);
  --fs-h2: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);

  /* Scala di spaziatura (base 4px) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --gutter: clamp(18px, 4.5vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --container: 1240px;

  /* Forme, ombre, movimento */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(47, 13, 21, 0.06), 0 2px 8px rgba(47, 13, 21, 0.05);
  --shadow-md: 0 6px 18px rgba(47, 13, 21, 0.08), 0 2px 6px rgba(47, 13, 21, 0.05);
  --shadow-lg: 0 24px 60px rgba(47, 13, 21, 0.16), 0 6px 18px rgba(47, 13, 21, 0.07);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 0.98; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.12; }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand-700); text-decoration: none; text-underline-offset: 3px; transition: color 0.2s ease; }
a:hover { color: var(--brand-500); }
button { font: inherit; color: inherit; }
svg { display: block; flex: none; }
::selection { background: var(--brand-200); color: var(--brand-900); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight-top { padding-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand-600); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top 0.2s ease; }
.skip-link:focus { top: 12px; color: #fff; }

/* Contenuti alternativi per canale (ingrosso / dettaglio) */
html[data-mode="ingrosso"] .only-det,
html[data-mode="dettaglio"] .only-ing { display: none !important; }

/* ---------- Elementi tipografici ricorrenti ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-700);
  margin: 0 0 var(--s-4);
}
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--brand-600); flex: none; }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { max-width: 20ch; }
.section-head--row { grid-template-columns: 1fr auto; align-items: end; gap: var(--s-5); }
.note { font-size: var(--fs-sm); color: var(--muted); max-width: 62ch; }

/* ---------- Bottoni ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem;
  letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.1; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill); cursor: pointer; text-decoration: none;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn svg { width: 20px; height: 20px; }
.btn--primary { --btn-bg: var(--brand-600); --btn-fg: #fff; --btn-bd: var(--brand-600); box-shadow: 0 8px 22px rgba(125, 31, 51, 0.26); }
.btn--primary:hover { --btn-bg: var(--brand-700); --btn-bd: var(--brand-700); box-shadow: 0 12px 28px rgba(125, 31, 51, 0.32); }
.btn--primary:active { --btn-bg: var(--brand-800); --btn-bd: var(--brand-800); }
.btn--outline { --btn-fg: var(--brand-800); --btn-bd: var(--brand-300); --btn-bg: var(--surface); }
.btn--outline:hover { --btn-bd: var(--brand-600); --btn-bg: var(--brand-100); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--brand-800); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--brand-100); --btn-bd: var(--brand-100); }
.btn--ghost-light { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.45); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.12); --btn-bd: #fff; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 0.9375rem; }
.btn .arrow { transition: transform 0.28s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem;
  letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap;
  padding-block: 8px;
}
.text-link svg { width: 18px; height: 18px; transition: transform 0.28s var(--ease); }
.text-link:hover svg { transform: translateX(5px); }

/* ---------- Barra superiore ---------- */
.topbar { background: var(--brand-900); color: #f6eef0; font-size: var(--fs-xs); letter-spacing: 0.05em; text-transform: uppercase; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; min-height: 40px; padding-block: 6px; }
.topbar a { color: #f6eef0; display: inline-flex; align-items: center; gap: 7px; padding-block: 4px; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar svg { width: 14px; height: 14px; opacity: 0.8; }
.topbar__links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* ---------- Header ---------- */
.progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; background: var(--brand-600); transform: scaleX(0); transform-origin: left; z-index: 60; }
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.header[data-scrolled="1"] { box-shadow: 0 8px 30px rgba(47, 13, 21, 0.09); }
.header__row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); transition: min-height 0.3s ease; }
.header[data-scrolled="1"] .header__row { min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; flex: none; }
.brand img { width: 58px; height: 48px; object-fit: contain; mix-blend-mode: multiply; transition: width 0.3s ease, height 0.3s ease; }
.header[data-scrolled="1"] .brand img { width: 48px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.02; font-family: var(--font-display); }
.brand__name { font-size: 1.5rem; font-weight: 600; letter-spacing: 0.03em; color: var(--brand-700); }
.brand__sub { font-size: 0.875rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; gap: clamp(14px, 1.9vw, 28px); align-items: center; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.05em;
  color: var(--ink);
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px; background: var(--brand-600); transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--brand-700); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface-tint); border: 1px solid var(--line); border-radius: var(--r-pill); }
.seg button {
  min-height: 38px; padding: 6px 16px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.seg button:hover { color: var(--brand-700); }
.seg button[aria-pressed="true"] { background: var(--brand-600); color: #fff; box-shadow: 0 2px 8px rgba(125, 31, 51, 0.3); }

.menu-btn { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--brand-800); transition: transform 0.3s ease, opacity 0.2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; padding: 8px var(--gutter) 22px; max-height: calc(100dvh - 120px); overflow-y: auto; }
.mobile-nav a.mobile-nav__link { display: block; padding: 15px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.03em; color: var(--ink); border-bottom: 1px solid var(--line); transition: padding-left 0.22s ease, color 0.2s ease; }
.mobile-nav a.mobile-nav__link:hover, .mobile-nav a.mobile-nav__link[aria-current="true"] { color: var(--brand-700); padding-left: 10px; }
.mobile-nav__cta { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 18px; }
.mobile-nav__cta .btn { flex: 1 1 150px; }

@media (max-width: 1140px) {
  .nav, .header__wa { display: none; }
  .menu-btn { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .mobile-nav[data-open="1"] { display: block; animation: menuIn 0.28s var(--ease) both; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(36px, 6vw, 76px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 92%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 70% at 88% 18%, var(--brand-200), transparent 70%),
    radial-gradient(40% 50% at 4% 0%, var(--brand-100), transparent 72%);
  opacity: 0.85;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { padding-block: clamp(8px, 3vw, 40px); }
.hero__copy h1 { margin-bottom: var(--s-5); }
.hero__copy h1 em { font-style: normal; color: var(--brand-600); }
.hero__copy .lead { margin-bottom: var(--s-6); max-width: 50ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media::before { content: ""; position: absolute; inset: 9% -4% -5% 12%; border-radius: var(--r-xl); background: var(--brand-600); z-index: -1; }
.hero__frame { position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 10 / 9; background: var(--surface-tint); box-shadow: var(--shadow-lg); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: clamp(-18px, -1.4vw, -8px); bottom: 28px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-md);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-800);
}
.hero__badge i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); }
.hero__badge svg { width: 20px; height: 20px; }

.stats { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.stat { padding: clamp(20px, 2.6vw, 32px) clamp(18px, 2.4vw, 30px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.3rem, 1.6rem + 2.2vw, 3.3rem); line-height: 1; color: var(--brand-600); font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }

/* ---------- Le linee ---------- */
.lines { border-top: 1px solid var(--line); }
.line-row {
  position: relative; display: grid; grid-template-columns: clamp(64px, 9vw, 120px) minmax(0, 1fr) auto; gap: 8px clamp(16px, 3vw, 36px); align-items: center;
  padding: clamp(22px, 3vw, 34px) clamp(8px, 1.6vw, 20px); border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, padding-left 0.3s var(--ease);
}
.line-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand-600); transform: scaleY(0); transform-origin: top; transition: transform 0.34s var(--ease); }
.line-row:hover { background: var(--surface); padding-left: clamp(16px, 2.4vw, 32px); }
.line-row:hover::before { transform: scaleY(1); }
.line-row__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 2rem + 2.6vw, 4.2rem); line-height: 0.9; color: var(--brand-300); transition: color 0.3s ease; }
.line-row:hover .line-row__num { color: var(--brand-600); }
.line-row h3 { margin-bottom: 6px; font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2rem); }
.line-row p { color: var(--muted); max-width: 62ch; }
.line-row__arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--brand-700); transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease); }
.line-row__arrow svg { width: 20px; height: 20px; }
.line-row:hover .line-row__arrow { background: var(--brand-600); border-color: var(--brand-600); color: #fff; transform: translateX(4px); }
.line-row a.line-row__link::after { content: ""; position: absolute; inset: 0; }
.line-row a.line-row__link { color: inherit; }

/* ---------- Blocco immagine + testo ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.media { position: relative; }
.media__frame { overflow: hidden; border-radius: var(--r-xl); background: var(--surface-tint); box-shadow: var(--shadow-md); }
.media__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.media:hover .media__frame img { transform: scale(1.035); }
.media--offset::before { content: ""; position: absolute; inset: 10% 14% -18px -18px; border-radius: var(--r-xl); border: 2px solid var(--brand-300); z-index: -1; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.split__copy h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); margin-bottom: var(--s-4); }
.split__copy p { color: var(--muted); margin-bottom: var(--s-5); max-width: 56ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.03em; color: var(--ink-soft);
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.25s var(--ease);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-600); }
.chip:hover { background: var(--brand-100); border-color: var(--brand-300); color: var(--brand-800); transform: translateY(-2px); }

/* ---------- Galleria lavori ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); }
.shot { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface-tint); border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s ease, transform 0.35s var(--ease); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.shot:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.shot:hover img { transform: scale(1.05); }
.shot__cap {
  position: absolute; inset: auto 0 0 0; padding: 42px 18px 16px; text-align: left;
  background: linear-gradient(to top, rgba(34, 8, 14, 0.86), rgba(34, 8, 14, 0));
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.03em; line-height: 1.2;
}
.shot__zoom { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--brand-700); opacity: 0; transform: scale(0.85); transition: opacity 0.25s ease, transform 0.3s var(--ease); }
.shot__zoom svg { width: 18px; height: 18px; }
.shot:hover .shot__zoom, .shot:focus-visible .shot__zoom { opacity: 1; transform: scale(1); }

/* ---------- Canale ---------- */
.channel-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: clamp(48px, 7vw, 80px); }
.channel-panel__media { position: relative; min-height: 420px; background: var(--surface-tint); overflow: hidden; }
.channel-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.points { display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 2.6vw, 30px); padding: clamp(28px, 4vw, 52px); }
.point { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.point__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--brand-100); color: var(--brand-600); }
.point__icon svg { width: 24px; height: 24px; }
.point h3 { font-size: 1.45rem; margin-bottom: 4px; }
.point p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
.subhead { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); margin-bottom: var(--s-5); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.ch-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 22px;
  min-height: 148px; padding: 24px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s var(--ease), background-color 0.25s ease;
}
.ch-card:hover { border-color: var(--brand-400); box-shadow: 0 14px 34px rgba(125, 31, 51, 0.13); transform: translateY(-4px); }
.ch-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1.1; color: var(--ink); }
.ch-card__more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-700); }
.ch-card__more svg { width: 18px; height: 18px; transition: transform 0.28s var(--ease); }
.ch-card:hover .ch-card__more svg { transform: translateX(5px); }

/* ---------- Fascia contatto ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center; justify-content: space-between;
  padding: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 64px); border-radius: var(--r-xl); color: #fbf1f3;
  background:
    linear-gradient(100deg, rgba(34, 8, 14, 0.95) 0%, rgba(47, 13, 21, 0.88) 45%, rgba(111, 31, 51, 0.72) 100%),
    url("../assets/img/negozio-scaffali-1200.webp") center 40% / cover no-repeat,
    var(--brand-900);
}
@media (min-width: 1300px) {
  .cta-band { background-image: linear-gradient(100deg, rgba(34, 8, 14, 0.95) 0%, rgba(47, 13, 21, 0.88) 45%, rgba(111, 31, 51, 0.72) 100%), url("../assets/img/negozio-scaffali-1800.webp"); }
}
@media (max-width: 640px) {
  .cta-band { background-image: linear-gradient(180deg, rgba(34, 8, 14, 0.94), rgba(47, 13, 21, 0.86)), url("../assets/img/negozio-scaffali-800.webp"); }
}
.cta-band::before { content: ""; position: absolute; right: -80px; top: -140px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, 0.05); z-index: -1; }
.cta-band::after { content: ""; position: absolute; right: 180px; bottom: -200px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, 0.04); z-index: -1; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin-bottom: 10px; }
.cta-band p { color: #ecd3d9; max-width: 52ch; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Catalogo ---------- */
.catalog { display: grid; gap: clamp(12px, 1.6vw, 18px); }
.cat-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 56px); padding: clamp(24px, 3.4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.cat-row:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); }
.cat-row__num { display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding-inline: 10px; margin-bottom: 14px; border-radius: var(--r-pill); background: var(--brand-100); font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.14em; color: var(--brand-700); }
.cat-row h3 { margin-bottom: 8px; font-size: clamp(1.55rem, 1.3rem + 1vw, 1.9rem); }
.cat-row > div > p { font-size: var(--fs-sm); color: var(--muted); }
.cat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(18px, 3vw, 36px); align-content: start; }
.cat-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cat-list svg { width: 18px; height: 18px; color: var(--brand-600); }
.cat-row__items { display: grid; gap: 18px; align-content: start; justify-items: start; }
.cat-row__items .cat-list { width: 100%; }
html.js .cat-row:not([data-open]) .cat-list li.is-extra { display: none; }
html.js .cat-row[data-open] .cat-list li.is-extra { animation: cat-in 0.35s var(--ease) both; }
@keyframes cat-in { from { opacity: 0; transform: translateY(-6px); } }
.cat-more { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 1px solid var(--brand-300); border-radius: var(--r-pill); background: var(--surface); font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-800); cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease; }
html.js .cat-more { display: inline-flex; }
.cat-more:hover { background: var(--brand-100); border-color: var(--brand-600); }
.cat-more:active { transform: translateY(1px); }
.cat-more svg { width: 18px; height: 18px; transform: rotate(90deg); transition: transform 0.28s var(--ease); }
.cat-more[aria-expanded="true"] svg { transform: rotate(-90deg); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); margin-top: clamp(40px, 6vw, 64px); }
.trio figcaption { padding: 14px 4px 0; font-size: var(--fs-sm); color: var(--muted); }
.trio figcaption strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.01em; color: var(--ink); }

/* ---------- Chi siamo ---------- */
.band-tint { background: var(--brand-100); }
.about__lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); line-height: 1.6; color: var(--ink); margin-bottom: var(--s-5); }
.about__copy p + p { margin-top: var(--s-4); }
.about__copy p:not(.about__lead) { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(40px, 6vw, 72px); }
.value { padding: clamp(24px, 3vw, 34px); background: var(--surface); border-radius: var(--r-lg); border: 1px solid rgba(125, 31, 51, 0.1); transition: transform 0.3s var(--ease), box-shadow 0.3s ease; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: var(--r-md); background: var(--brand-600); color: #fff; }
.value__icon svg { width: 26px; height: 26px; }
.value h3 { font-size: 1.5rem; margin-bottom: 8px; }
.value p { font-size: var(--fs-sm); color: var(--muted); }
.legal { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: clamp(32px, 5vw, 56px); padding-top: var(--s-5); border-top: 1px solid rgba(125, 31, 51, 0.16); font-size: var(--fs-sm); color: var(--muted); }
.legal strong { color: var(--ink); }

/* ---------- Preventivo ---------- */
.quote { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.quote__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.quote__intro h2 { margin-bottom: var(--s-4); }
.form-card { padding: clamp(22px, 3.4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.label, .field > label, fieldset legend {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
  transition: color 0.2s ease;
}
.field:focus-within > label { color: var(--brand-700); }
.req { color: var(--brand-600); }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); caret-color: var(--brand-600);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.input:hover { border-color: var(--brand-400); }
.input:focus { outline: none; border-color: var(--brand-600); background: #fff; box-shadow: 0 0 0 4px var(--brand-200); }
.input:user-invalid { border-color: #b3261e; box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.12); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d1f33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; cursor: pointer; }
textarea.input { min-height: 128px; resize: vertical; line-height: 1.5; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 9px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); font-size: 0.96875rem; cursor: pointer; background: var(--bg); transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-600); cursor: pointer; }
.check:hover { border-color: var(--brand-400); background: var(--brand-100); }
.check:has(input:checked) { border-color: var(--brand-600); background: var(--brand-100); color: var(--brand-800); font-weight: 500; }
.check:has(input:focus-visible) { outline: 3px solid var(--brand-600); outline-offset: 3px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding-top: 6px; }
.form__foot span { font-size: var(--fs-sm); color: var(--muted); flex: 1 1 240px; }
.sent { padding: clamp(26px, 4vw, 48px); border-radius: var(--r-xl); background: var(--brand-100); border: 1.5px solid var(--brand-300); animation: swapIn 0.5s var(--ease) both; }
.sent__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--brand-600); color: #fff; }
.sent__icon svg { width: 28px; height: 28px; }
.sent h3 { font-size: 2rem; color: var(--brand-800); margin-bottom: 10px; }
.sent p { color: var(--brand-800); margin-bottom: var(--s-5); }
.sent__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.contact__info { display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 3.6vw, 48px); }
.contact__item { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact__item:last-of-type { border-bottom: 0; }
.contact__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-md); background: var(--brand-100); color: var(--brand-600); }
.contact__icon svg { width: 22px; height: 22px; }
.contact__label { font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-700); }
.contact__value { font-size: 1.125rem; line-height: 1.4; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
a.contact__value:hover { color: var(--brand-600); text-decoration: underline; }
.contact__info .btn { align-self: flex-start; margin-top: 18px; }
.contact__map { min-height: 480px; background: var(--surface-tint); }
.contact__map iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; filter: saturate(0.55); }
.map-consent {
  height: 100%; min-height: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: clamp(28px, 5vw, 56px); text-align: center; color: #fff;
  background:
    linear-gradient(180deg, rgba(34, 8, 14, 0.42) 0%, rgba(34, 8, 14, 0.78) 55%, rgba(34, 8, 14, 0.9) 100%),
    url("../assets/img/negozio-cassa-800.webp") center 30% / cover no-repeat,
    var(--brand-900);
}
@media (min-width: 1300px) {
  .map-consent { background-image: linear-gradient(180deg, rgba(34, 8, 14, 0.42) 0%, rgba(34, 8, 14, 0.78) 55%, rgba(34, 8, 14, 0.9) 100%), url("../assets/img/negozio-cassa-1200.webp"); }
}
.map-consent__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-600); color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.map-consent__icon svg { width: 30px; height: 30px; }
.map-consent__kicker { font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-300); }
.map-consent__title { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1.15; color: #fff; }
.map-consent__text { font-size: var(--fs-sm); color: #ecd3d9; max-width: 42ch; margin-bottom: 6px; }
.map-consent__text a { color: #fff; text-decoration: underline; }
.map-consent .btn--light:hover { color: var(--brand-800); }

/* Inquadratura delle foto verticali ritagliate */
.pos-agrifoglio { object-position: center 62%; }
.channel-panel__media .only-det img { object-position: center 38%; }

/* ---------- Footer ---------- */
.footer { background: var(--brand-950); color: #e9d5da; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 7vw, 80px) clamp(32px, 4vw, 48px); }
.footer__brand { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; letter-spacing: 0.03em; color: #fff; }
.footer__brand span { color: var(--brand-300); font-weight: 400; }
.footer p { margin-top: 12px; font-size: var(--fs-sm); line-height: 1.65; color: #d3b9c0; max-width: 38ch; }
.footer__col { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.footer__title { font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-300); margin: 0 0 10px; }
.footer a { color: #f4e6e9; font-size: var(--fs-sm); padding: 5px 0; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__addr { font-size: var(--fs-sm); color: #d3b9c0; padding: 5px 0; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 20px 28px; font-size: var(--fs-xs); color: #c9aab2; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: baseline; }
.footer .footer__legal { margin: 0; font-size: var(--fs-xs); color: #c9aab2; max-width: 90ch; }
.footer__policies { display: flex; gap: 20px; flex: none; }
.footer .footer__policies a { font-size: var(--fs-xs); padding: 0; text-decoration: underline; }

.footer__policies { align-items: baseline; flex-wrap: wrap; }
.footer__consent, .link-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer__consent { font-size: var(--fs-xs); color: #f4e6e9; }
.footer__consent:hover { color: #fff; }
.link-btn { color: var(--brand-700); font-weight: 500; }
.link-btn:hover { color: var(--brand-500); }

/* ---------- Banner consenso cookie ---------- */
.consent {
  position: fixed; left: 18px; bottom: 18px; z-index: 90;
  width: min(460px, calc(100vw - 36px)); max-height: calc(100dvh - 36px); overflow-y: auto;
  padding: 26px 24px 22px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-top: 5px solid var(--brand-600); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(34, 8, 14, 0.28), 0 4px 14px rgba(34, 8, 14, 0.12);
  animation: consentIn 0.45s var(--ease) both;
}
.consent__x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--brand-800); cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease; }
.consent__x:hover { background: var(--brand-100); border-color: var(--brand-600); }
.consent__x svg { width: 18px; height: 18px; }
.consent__title { font-size: 1.6rem; margin: 0 48px 10px 0; color: var(--brand-800); }
.consent__text { font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-soft); }
.consent__text a { text-decoration: underline; font-weight: 500; }
.consent__prefs { display: grid; gap: 10px; margin-top: 16px; }
.consent__opt { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg); font-size: var(--fs-sm); line-height: 1.4; cursor: pointer; }
.consent__opt:has(input:disabled) { cursor: default; opacity: 0.85; }
.consent__opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand-600); }
.consent__opt small { color: var(--muted); font-size: 0.8125rem; }
.consent__opt:has(input:checked:not(:disabled)) { border-color: var(--brand-600); background: var(--brand-100); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.consent__btn {
  min-height: 48px; padding: 10px 16px; border: 1.5px solid var(--brand-600); border-radius: var(--r-pill);
  background: var(--brand-600); color: #fff; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.consent__btn:hover { background: var(--brand-800); border-color: var(--brand-800); }
.consent__btn[data-c="save"] { grid-column: 1 / -1; }
.consent__more { grid-column: 1 / -1; justify-self: center; padding: 8px 12px; border: 0; background: none; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-700); text-decoration: underline; text-underline-offset: 4px; }
.consent__more:hover { color: var(--brand-500); }
html.consent-open .fab { opacity: 0; pointer-events: none; }
@keyframes consentIn { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 640px) {
  .consent { left: 0; right: 0; bottom: 0; width: 100%; max-height: 85dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; border-left: 0; border-right: 0; border-bottom: 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
}
@media print { .consent { display: none !important; } }

/* ---------- Pagine legali ---------- */
.legal-page { padding-block: clamp(40px, 7vw, 88px) var(--section); }
.legal-page .container { max-width: calc(820px + var(--gutter) * 2); }
.legal-page h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); margin-bottom: var(--s-4); }
.legal-page h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); margin: var(--s-8) 0 var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.legal-page h3 { font-size: 1.35rem; margin: var(--s-6) 0 var(--s-3); }
.legal-page p, .legal-page li { color: var(--ink-soft); max-width: 70ch; }
.legal-page p + p { margin-top: var(--s-3); }
.legal-page ul { list-style: disc; padding-left: 1.3em; margin: var(--s-3) 0; display: grid; gap: 6px; }
.legal-page a { text-decoration: underline; }
.legal-page .updated { font-size: var(--fs-sm); color: var(--muted); }
.legal-page .box { margin-top: var(--s-5); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.legal-page .box p { margin: 0; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: var(--s-4); font-size: var(--fs-sm); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal-table th { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-700); }
.table-wrap { overflow-x: auto; }
.header--simple .header__row { justify-content: space-between; }

/* ---------- WhatsApp flottante ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 55;
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 22px 12px 18px;
  background: var(--brand-600); color: #fff; border-radius: var(--r-pill); box-shadow: 0 10px 28px rgba(125, 31, 51, 0.38);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.07em; text-transform: uppercase;
  opacity: 0; pointer-events: none; translate: 0 14px; transition: opacity 0.35s ease, translate 0.35s ease, background-color 0.2s ease, transform 0.25s var(--ease);
}
.fab svg { width: 22px; height: 22px; }
.fab[data-show="1"] { opacity: 1; pointer-events: auto; translate: 0 0; }
.fab:hover { background: var(--brand-700); color: #fff; transform: translateY(-3px); }

/* ---------- Finestre di dialogo ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(34, 8, 14, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog[open] { animation: popIn 0.32s var(--ease) both; }
dialog[open]::backdrop { animation: fadeIn 0.22s ease both; }
.modal { width: min(560px, calc(100vw - 32px)); }
.modal__card { position: relative; padding: clamp(28px, 5vw, 44px); background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border-top: 5px solid var(--brand-600); }
.modal__card h3 { font-size: 2.1rem; margin-bottom: 14px; padding-right: 44px; }
.modal__card p { color: var(--muted); margin-bottom: var(--s-5); }
.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.close-btn { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--brand-800); cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease); }
.close-btn svg { width: 20px; height: 20px; }
.close-btn:hover { background: var(--brand-100); border-color: var(--brand-600); transform: rotate(90deg); }
.lightbox { width: min(1180px, calc(100vw - 24px), calc((100dvh - 110px) * 1.38)); }
.lightbox figure { position: relative; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.lightbox img { width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; background: #fff; }
.lightbox figcaption { padding: 14px 70px 16px 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }

/* ---------- Animazioni ---------- */
@keyframes menuIn { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
@keyframes swapIn { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes popIn { from { opacity: 0; translate: 0 18px; scale: 0.97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(125, 31, 51, 0.34); } 70% { box-shadow: 0 0 0 14px rgba(125, 31, 51, 0); } }

/* Cambio canale: i blocchi che compaiono entrano con una breve dissolvenza */
html.is-swapping .only-ing, html.is-swapping .only-det { animation: swapIn 0.45s var(--ease) both; }
.header__wa { animation: pulse 3.6s ease-out 1.4s 3; }

/* Comparsa allo scorrimento: attiva solo con JavaScript e senza "riduci movimento" */
html.js [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.16, 0.84, 0.28, 1); transition-delay: var(--d, 0ms); }
html.js [data-reveal="left"] { translate: -28px 0; }
html.js [data-reveal="right"] { translate: 28px 0; }
html.js [data-reveal="scale"] { translate: 0 0; scale: 0.965; transition: opacity 0.8s ease, scale 0.8s cubic-bezier(0.16, 0.84, 0.28, 1); transition-delay: var(--d, 0ms); }
html.js [data-reveal].is-in { opacity: 1; translate: 0 0; scale: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .quote { grid-template-columns: 1fr; }
  .quote__intro { position: static; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero__grid, .split, .channel-panel, .contact, .cat-row { grid-template-columns: 1fr; }
  .hero__media { max-width: 640px; margin-right: 4%; }
  .hero__frame { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-panel__media { min-height: 0; aspect-ratio: 4 / 3; }
  .contact__map, .contact__map iframe { min-height: 380px; }
  .media--offset::before { inset: 10% 10% -12px -10px; }
  html.js [data-reveal="left"], html.js [data-reveal="right"] { translate: 0 22px; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .topbar__claim { display: none; }
  .topbar .container { justify-content: center; }
  .brand img { width: 48px; height: 40px; }
  .brand__name { font-size: 1.25rem; }
  .brand__sub { font-size: 0.75rem; letter-spacing: 0.18em; }
  .header__row { gap: 10px; }
  .seg button { padding: 6px 12px; font-size: 0.8125rem; letter-spacing: 0.08em; }
  .section-head--row { grid-template-columns: 1fr; align-items: start; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__badge { left: 12px; bottom: 12px; font-size: 0.875rem; padding: 8px 14px 8px 8px; }
  .hero__badge i { width: 34px; height: 34px; }
  .line-row { grid-template-columns: 56px minmax(0, 1fr); }
  .line-row__arrow { display: none; }
  .cat-list, .form, .trio { grid-template-columns: 1fr; }
  .trio { gap: 28px; }
  .gallery { grid-template-columns: 1fr; }
  .point { grid-template-columns: 44px 1fr; gap: 14px; }
  .point__icon { width: 44px; height: 44px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band__actions, .cta-band__actions .btn, .modal__actions .btn, .sent__actions .btn { width: 100%; }
  .form__foot .btn { width: 100%; }
  .fab { right: 14px; bottom: 14px; }
  .fab span { display: none; }
  .footer__bottom { padding-bottom: 92px; }
  .fab { padding: 0; width: 56px; height: 56px; justify-content: center; }
}
@media (max-width: 400px) {
  .brand img { display: none; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-reveal] { opacity: 1 !important; translate: 0 0 !important; scale: 1 !important; }
}

/* ---------- Stampa ---------- */
@media print {
  .topbar, .header, .fab, .progress, .contact__map, .cta-band__actions { display: none !important; }
  html.js [data-reveal] { opacity: 1 !important; translate: 0 0 !important; scale: 1 !important; }
}

/* Contenitori immagine alternativi nel pannello canale */
.channel-panel__media > span { display: block; height: 100%; }
