/* ==========================================================================
   AKWOOD DESIGN – stile (versione 2)
   Layout: copertina e contatti in "cornici" scure arrotondate su fondo grigio
   caldo; menu a pillola; schede scorrevoli; un solo carattere (Inter).
   Carattere ospitato nel sito (assets/fonts): nessuna richiesta a Google.
   ========================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/inter-var.woff2") format("woff2"); }

:root {
  --bg: #ecebe7;          /* fondo pagina, grigio caldo */
  --surface: #f6f5f2;     /* schede chiare */
  --paper: #ffffff;
  --ink: #121110;         /* testo e cornici scure */
  --ink-2: #1c1b19;
  --ink-3: #2b2926;
  --muted: #7f7b74;
  --muted-2: #b3afa7;
  --line: rgba(18, 17, 16, .1);
  --light: #f4f2ee;       /* testo su scuro */
  --light-2: rgba(244, 242, 238, .62);
  --light-line: rgba(244, 242, 238, .14);
  --wood: #b07a4d;        /* accento legno, usato con parsimonia */
  --wa: #1f8f52;
  --err: #b4412f;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r-xl: 30px; --r-lg: 22px; --r-md: 16px;
  --frame: clamp(8px, 1vw, 14px);           /* distanza delle cornici dal bordo */
  --gutter: clamp(18px, 3.2vw, 40px);
  --wrap: 1320px;
  --nav-top: calc(14px + env(safe-area-inset-top, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "cv11", "ss01"; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--light); }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 999px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }
.center:has(> [hidden]:only-child) { display: none; }
section[id] { scroll-margin-top: 90px; }
#home { scroll-margin-top: 0; }

/* ---------- tipografia ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0 0; }
.h2 { font-size: clamp(2.3rem, 4.8vw, 4.1rem); }
.h2--light { color: var(--light); }
.eyebrow { font-size: .82rem; font-weight: 500; color: var(--muted); margin: 0 0 .9rem; letter-spacing: 0; }
.eyebrow--light { color: var(--light-2); }
.idx { display: inline-flex; align-items: center; gap: .7rem; font-size: .8rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.idx::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .5; }
.idx--light { color: var(--light-2); }

/* ---------- pillole e bottoni ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  min-height: 48px; padding: .45rem .45rem .45rem 1.3rem; border: 0; border-radius: 999px;
  font-size: .95rem; font-weight: 500; letter-spacing: -.01em; text-decoration: none; line-height: 1.2;
  transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.pill--plain { padding: .8rem 1.4rem; }
.pill__dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform .45s var(--ease); }
.pill__dot svg { width: 17px; height: 17px; stroke-width: 2; }
.pill:hover .pill__dot { transform: rotate(45deg); }
.pill:active { transform: scale(.98); }
.pill--dark { background: var(--ink); color: var(--light); }
.pill--dark .pill__dot { background: var(--light); color: var(--ink); }
.pill--dark:hover { background: var(--ink-3); }
.pill--light { background: var(--light); color: var(--ink); }
.pill--light .pill__dot { background: var(--ink); color: var(--light); }
.pill--light:hover { background: #fff; }
.pill--outline-light { padding: .8rem 1.3rem; color: var(--light); box-shadow: inset 0 0 0 1px var(--light-line); }
.pill--outline-light:hover { background: rgba(244, 242, 238, .08); }
.pill--block { width: 100%; padding: 1rem 1.4rem; }
.pill[disabled] { opacity: .6; pointer-events: none; }
/* pulsanti creati dallo script (stato del modulo, mappa) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .8rem 1.4rem; border-radius: 999px; background: var(--ink); color: var(--light); font-weight: 500; text-decoration: none; border: 0; }
.btn:hover { background: var(--ink-3); }

.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, transform .3s var(--ease), opacity .3s; }
.iconbtn svg { width: 18px; height: 18px; stroke-width: 2; }
.iconbtn:hover { transform: scale(1.06); }
.iconbtn[disabled] { opacity: .35; pointer-events: none; }
.iconbtn--dark { background: var(--ink); color: var(--light); box-shadow: none; }
.iconbtn--glass { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.iconbtn--glass:hover { background: rgba(255, 255, 255, .26); }

/* ---------- comparsa ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ======================= MENU A PILLOLA ======================= */
.nav { position: fixed; z-index: 100; inset: var(--nav-top) 0 auto; display: flex; justify-content: center; pointer-events: none; padding-inline: var(--gutter); }
.nav__pill {
  pointer-events: auto; display: flex; align-items: center; gap: .3rem; padding: 6px;
  border-radius: 999px; background: rgba(28, 27, 25, .62); color: var(--light);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 18px 40px -22px rgba(0, 0, 0, .6);
  transition: background .4s, box-shadow .4s;
}
.nav.is-scrolled .nav__pill { background: rgba(18, 17, 16, .86); }
.nav__logo { display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; margin-inline-end: .4rem; }
.nav__logo img { width: 100%; height: 100%; object-fit: cover; }
.nav__links { display: flex; align-items: center; gap: .1rem; }
.nav__links a { position: relative; padding: .55rem .95rem; border-radius: 999px; font-size: .9rem; font-weight: 450; text-decoration: none; color: rgba(244, 242, 238, .78); transition: color .3s, background .3s; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__links a.is-current { color: #fff; background: rgba(255, 255, 255, .12); }
.nav__cta { display: inline-flex; align-items: center; gap: .55rem; margin-inline-start: .4rem; padding: .35rem .35rem .35rem 1rem; border-radius: 999px; background: var(--light); color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .3s; }
.nav__cta i { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--light); display: grid; place-items: center; transition: transform .45s var(--ease); }
.nav__cta svg { width: 14px; height: 14px; stroke-width: 2.2; }
.nav__cta:hover { background: #fff; }
.nav__cta:hover i { transform: rotate(45deg); }
.lang { pointer-events: auto; position: absolute; inset-inline-end: var(--gutter); top: 6px; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(28, 27, 25, .62); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.lang__btn { border: 0; background: none; color: rgba(244, 242, 238, .7); font-size: .78rem; font-weight: 600; padding: .5rem .6rem; border-radius: 999px; line-height: 1; transition: background .3s, color .3s; }
.lang__btn:hover { color: #fff; }
.lang__btn.is-active { background: var(--light); color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); position: relative; flex: none; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 1180px) { .lang { position: static; margin-inline-start: 8px; align-self: center; } .nav { gap: 0; } }
@media (max-width: 1000px) {
  .nav { justify-content: space-between; align-items: center; }
  .nav__pill { gap: .2rem; }
  .burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: stretch; gap: .2rem;
    padding: 110px var(--gutter) 40px; background: var(--ink); opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  }
  .nav__links a { font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 500; letter-spacing: -.04em; padding: .5rem 0; color: var(--light); border-radius: 0; border-bottom: 1px solid var(--light-line); }
  .nav__links a:hover, .nav__links a.is-current { background: none; color: var(--wood); }
  .nav.menu-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav.menu-open .nav__pill { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 520px) {
  .nav__cta span { display: none; }
  .nav__cta { padding: .35rem; margin-inline-start: .2rem; }
  .lang__btn { padding: .45rem .45rem; }
}

/* ======================= COPERTINA ======================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; padding: var(--frame); }
.hero__frame {
  position: relative; height: 100%; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: #fff; isolation: isolate;
  transform: scale(calc(1 - var(--hp, 0) * .05)); transform-origin: 50% 0;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
/* foto a scorrimento: dissolvenza e zoom lento ("Ken Burns") */
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 1.8s ease; }
.hero__slide.is-active { opacity: 1; animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero__dots { display: flex; gap: 6px; margin-top: 2rem; }
.hero__dot { width: 40px; height: 22px; padding: 0; border: 0; background: none; display: grid; align-items: center; }
.hero__dot i { position: relative; display: block; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .3); transition: background .3s; }
.hero__dot:hover i { background: rgba(255, 255, 255, .55); }
.hero__dot i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hero__dot i::after { transform-origin: right; }
.hero__dot.is-done i::after { transform: scaleX(1); }
.hero__dot.is-active i::after { animation: heroFill var(--slide-ms, 6500ms) linear forwards; }
@keyframes heroFill { to { transform: scaleX(1); } }
@media (max-width: 560px) { .hero__dots { margin-top: 1.4rem; } .hero__dot { width: 32px; } }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(12, 11, 10, .82) 0%, rgba(12, 11, 10, .45) 45%, rgba(12, 11, 10, .2) 100%),
  linear-gradient(180deg, rgba(12, 11, 10, .35) 0%, rgba(12, 11, 10, 0) 30%, rgba(12, 11, 10, .55) 100%); }
.hero__content { position: absolute; inset-inline-start: clamp(24px, 6vw, 96px); top: 50%; transform: translateY(calc(-58% - var(--hp, 0) * 60px)); width: min(640px, 100% - 48px); opacity: calc(1 - var(--hp, 0) * 1.6); }
.hero__eyebrow { font-size: .9rem; color: rgba(255, 255, 255, .7); margin-bottom: 1.2rem; }
.hero__title { font-size: clamp(2.5rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; margin-bottom: 2rem;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__card {
  position: absolute; z-index: 1; inset-inline-end: clamp(20px, 3vw, 44px); bottom: clamp(150px, 26vh, 270px); display: flex; gap: 14px; align-items: stretch;
  width: 330px; padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: calc(1 - var(--hp, 0) * 1.6);
}
.hero__thumb { flex: none; width: 92px; height: 118px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--ink-3); }
.hero__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hero__thumb:hover img { transform: scale(1.08); }
.hero__cardtext { display: flex; flex-direction: column; min-width: 0; padding-block: 4px; }
.hero__cardtext small { font-size: .74rem; color: rgba(255, 255, 255, .6); }
.hero__cardtext p { font-size: .92rem; line-height: 1.3; margin: .25rem 0 auto; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero__ctrl { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; }
.hero__ctrl .iconbtn { width: 34px; height: 34px; }
.hero__ctrl .iconbtn svg { width: 15px; height: 15px; }
.hero__count, .slider__count, .pcard__years strong, .stat__num strong { direction: ltr; unicode-bidi: isolate; }
.hero__count { font-size: .78rem; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.hero__brand {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 21%); z-index: 0; pointer-events: none; white-space: nowrap;
  font-size: clamp(5rem, 21vw, 23rem); font-weight: 600; letter-spacing: -.065em; line-height: .9;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .06) 78%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* linguetta con i social, ritagliata nell'angolo in basso */
.hero__tab { position: absolute; inset-inline-start: 0; bottom: 0; display: flex; gap: 6px; padding: 12px 16px 0 0; background: var(--bg); border-start-end-radius: 22px; z-index: 2; }
.hero__tab::before, .hero__tab::after { content: ""; position: absolute; width: 22px; height: 22px; background: radial-gradient(circle at 100% 0, transparent 21.5px, var(--bg) 22px); }
.hero__tab::before { left: 0; top: -22px; }
.hero__tab::after { left: 100%; bottom: 0; }
.hero__tab a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s; }
.hero__tab a:hover { background: var(--ink); color: var(--light); }
.hero__tab svg { width: 18px; height: 18px; }
[dir="rtl"] .hero__tab { padding: 12px 0 0 16px; }
[dir="rtl"] .hero__tab::before { left: auto; right: 0; background: radial-gradient(circle at 0 0, transparent 21.5px, var(--bg) 22px); }
[dir="rtl"] .hero__tab::after { left: auto; right: 100%; background: radial-gradient(circle at 0 0, transparent 21.5px, var(--bg) 22px); }
@media (max-width: 860px) {
  .hero__card { display: none; }
  .hero__content { top: auto; bottom: clamp(150px, 24vw, 220px); transform: translateY(calc(var(--hp, 0) * -40px)); }
  .hero__shade { background: linear-gradient(180deg, rgba(12, 11, 10, .45) 0%, rgba(12, 11, 10, .1) 35%, rgba(12, 11, 10, .78) 100%); }
}
@media (max-width: 560px) {
  .hero { min-height: 560px; }
  .hero__content { inset-inline-start: 20px; width: calc(100% - 40px); bottom: 26vw; }
  .hero__title { font-size: clamp(2.2rem, 10vw, 3rem); margin-bottom: 1.4rem; }
  .hero__brand { font-size: 23vw; transform: translate(-50%, 18%); }
}

/* ======================= 01 SERVIZI ======================= */
.services__layout {
  display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end;
  padding-inline-start: max(var(--gutter), (100vw - var(--wrap)) / 2);
}
.services__intro { padding-bottom: 82px; }
.services__intro .idx { margin-bottom: 1.6rem; }
.services__lead { color: var(--muted); max-width: 34ch; margin-bottom: 2.4rem; }
.services__intro .h2 { margin-bottom: 2rem; }
.slider { min-width: 0; }
.slider__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 4px var(--gutter) 6px 4px; scroll-padding-inline: 4px; scrollbar-width: none; cursor: grab;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-drag { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.slider__track.is-drag * { pointer-events: none; }
.slider__bar { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding-inline-end: var(--gutter); }
.slider__count { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.slider__count b { color: var(--ink); font-weight: 600; }
.slider__progress { position: relative; flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: 420px; }
.slider__progress i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 10%; background: var(--ink); border-radius: 2px; transition: width .4s var(--ease); }
.slider__btns { display: flex; gap: 8px; margin-inline-start: auto; }
[dir="rtl"] .slider__btns svg, [dir="rtl"] .hero__ctrl svg { transform: scaleX(-1); }

.scard { flex: none; width: clamp(250px, 23vw, 310px); scroll-snap-align: start; }
.scard__btn { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4.3; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-2); color: #fff; text-align: start; }
.scard__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.scard__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 11, 10, .35) 0%, rgba(12, 11, 10, 0) 30%, rgba(12, 11, 10, .2) 52%, rgba(12, 11, 10, .9) 100%); }
.scard__btn:hover img { transform: scale(1.06); }
.scard__n { position: absolute; z-index: 1; top: 16px; inset-inline-start: 18px; font-size: .78rem; font-weight: 500; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.scard__body { position: absolute; z-index: 1; inset-inline: 0; bottom: 0; padding: 18px; display: flex; flex-direction: column; gap: .5rem; }
.scard__title { font-size: 1.32rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.12; }
.scard__text { font-size: .84rem; line-height: 1.45; color: rgba(255, 255, 255, .74); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.scard__more { align-self: flex-start; display: inline-flex; align-items: center; gap: .55rem; margin-top: .4rem; padding: .32rem .32rem .32rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 500;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .3s; }
.scard__more i { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .45s var(--ease); }
.scard__more svg { width: 13px; height: 13px; stroke-width: 2.4; }
.scard__btn:hover .scard__more { background: rgba(255, 255, 255, .24); }
.scard__btn:hover .scard__more i { transform: rotate(90deg); }
.ph-badge { position: absolute; inset-inline-end: 14px; top: 14px; z-index: 2; background: rgba(250, 247, 241, .92); color: var(--ink); font-size: .66rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; }

@media (max-width: 960px) {
  .services__layout { grid-template-columns: 1fr; padding-inline-start: 0; gap: 34px; }
  .services__intro { padding: 0 var(--gutter); }
  .slider__track { padding-inline-start: var(--gutter); scroll-padding-inline: var(--gutter); }
  .slider__bar { padding-inline-start: var(--gutter); }
  .scard { width: min(76vw, 310px); }
}

/* scheda di dettaglio di un servizio */
.sheet { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: var(--frame); }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(12, 11, 10, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .35s both; }
.sheet__panel { position: relative; width: min(1100px, 100%); max-height: calc(100svh - 2 * var(--frame)); display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); animation: rise .5s var(--ease) both; }
.sheet__close { position: absolute; z-index: 3; top: 16px; inset-inline-end: 16px; }
.sheet__media { position: relative; min-height: 420px; background: var(--ink); }
.sheet__media .svc-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.sheet__media .svc-main.is-swap { opacity: 0; }
.svc-thumbs { position: absolute; inset-inline: 0; bottom: 0; display: flex; gap: 8px; padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(12, 11, 10, .7)); }
.svc-thumb { width: 70px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; opacity: .75; background: var(--ink); transition: opacity .3s, border-color .3s; }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc-thumb.is-active, .svc-thumb:hover { opacity: 1; border-color: #fff; }
.sheet__text { padding: clamp(26px, 4vw, 52px); overflow-y: auto; overscroll-behavior: contain; }
.sheet__text .eyebrow { margin-bottom: .6rem; }
.sheet__text h3 { font-size: clamp(1.9rem, 3vw, 2.7rem); margin-bottom: 1.3rem; padding-inline-end: 3rem; }
.sheet__text p { color: #4a4640; }
.sheet__text h4 { font-size: .82rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 1.6rem 0 .8rem; }
.sheet__list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.sheet__list li { padding: .7rem .9rem; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; line-height: 1.35; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) {
  .sheet { padding: 0; align-items: end; }
  .sheet__panel { grid-template-columns: 1fr; max-height: 92svh; border-radius: var(--r-xl) var(--r-xl) 0 0; overflow-y: auto; }
  .sheet__media { min-height: 0; aspect-ratio: 4 / 3; }
  .sheet__text { overflow: visible; padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
  .sheet__list { grid-template-columns: 1fr; }
}

/* ======================= 02 CHI SIAMO ======================= */
.about__head { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-bottom: 2rem; }
.about__head .eyebrow { margin: 0; }
.statement { max-width: 24em; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; font-size: clamp(1.75rem, 3.5vw, 3.1rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.16; color: var(--ink); text-wrap: balance; }
.js .statement .w { color: var(--muted-2); transition: color .35s; }
.js .statement .w.is-lit { color: var(--ink); }
.about__media { display: grid; grid-template-columns: 1.65fr 1fr; gap: 16px; }
.vcard { position: relative; display: block; min-height: 380px; padding: 0; border: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: #fff; text-align: start; }
.vcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; transition: transform 1.2s var(--ease); filter: brightness(.72); }
.vcard:hover img { transform: scale(1.04); }
.vcard__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .4s var(--ease), background .3s; }
.vcard__play svg { width: 28px; height: 28px; fill: #fff; stroke: none; margin-inline-start: 4px; }
.vcard:hover .vcard__play { transform: scale(1.1); background: rgba(255, 255, 255, .26); }
.vcard__label { position: absolute; inset-inline-start: 24px; bottom: 22px; display: flex; flex-direction: column; }
.vcard__label strong { font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; }
.vcard__label small { font-size: .82rem; color: rgba(255, 255, 255, .7); }
.pcard { display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pcard__top { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; color: var(--muted); margin-bottom: 1.4rem; }
.pcard__top small { font-size: inherit; }
.pcard h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin-bottom: .5rem; }
.pcard__years { font-size: .9rem; color: var(--muted); margin-bottom: 1.6rem; }
.pcard__years strong { color: var(--ink); font-weight: 600; }
.pcard__foot { display: flex; gap: 16px; align-items: flex-end; margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.pcard__foot p { margin: 0; font-size: .92rem; line-height: 1.5; color: #4a4640; }
.pcard__avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line); }
@media (max-width: 860px) { .about__media { grid-template-columns: 1fr; } .vcard { min-height: 0; aspect-ratio: 4 / 3.4; } }

.stats { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 6vw, 120px); align-items: center; padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.stat p { margin: 0; max-width: 52ch; color: var(--muted); }
.stat__num { text-align: end; min-width: 200px; }
.stat__num strong { display: block; font-size: clamp(3rem, 6.5vw, 5.8rem); font-weight: 500; letter-spacing: -.06em; line-height: .95; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__num span { font-size: .88rem; color: var(--muted); }
@media (max-width: 640px) { .stat { grid-template-columns: 1fr; gap: .8rem; } .stat__num { text-align: start; order: -1; min-width: 0; } }

/* ======================= TESTATE DI SEZIONE ======================= */
.sec-head { display: grid; grid-template-columns: auto minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem clamp(28px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head .idx { align-self: start; padding-top: .3rem; }
.sec-head__sub { margin: 0 0 .4rem; color: var(--muted); max-width: 44ch; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } }

/* ======================= 03 LAVORI ======================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { border: 0; padding: .6rem 1rem; border-radius: 999px; font-size: .86rem; font-weight: 500; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s; }
.chip:hover { background: var(--surface); }
.chip.is-active { background: var(--ink); color: var(--light); box-shadow: none; }
.chip sup { font-size: .66rem; margin-inline-start: .3rem; opacity: .55; vertical-align: .35em; }
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 18vw, 270px); grid-auto-flow: dense; gap: 12px; }
.m-item { position: relative; overflow: hidden; padding: 0; border: 0; background: #dcd9d3; border-radius: var(--r-lg); display: block; text-align: start; }
.m-item.tall { grid-row: span 2; } .m-item.wide { grid-column: span 2; } .m-item.big { grid-column: span 2; grid-row: span 2; }
.m-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.m-item:hover img, .m-item:focus-visible img { transform: scale(1.06); }
.m-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(12, 11, 10, .75)); opacity: 0; transition: opacity .5s var(--ease); }
.m-item__cap { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 1.1rem 1.2rem; color: #fff; font-size: 1.05rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.m-item__cap small { display: block; font-size: .74rem; font-weight: 500; color: rgba(255, 255, 255, .7); margin-bottom: .25rem; letter-spacing: 0; }
.m-item__zoom { position: absolute; z-index: 1; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s var(--ease); }
.m-item__zoom svg { width: 17px; height: 17px; }
.m-item:hover::after, .m-item:focus-visible::after, .m-item:hover .m-item__cap, .m-item:focus-visible .m-item__cap, .m-item:hover .m-item__zoom, .m-item:focus-visible .m-item__zoom { opacity: 1; transform: none; }
@media (hover: none) { .m-item::after { opacity: 1; background: linear-gradient(transparent 60%, rgba(12, 11, 10, .7)); } .m-item__cap { opacity: 1; transform: none; font-size: .92rem; padding: .8rem .9rem; } .m-item__cap small { display: none; } .m-item__zoom { display: none; } }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; gap: 8px; } .m-item { border-radius: var(--r-md); } }
.m-item.is-showing { animation: popIn .6s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes popIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.gallery .center { margin: clamp(28px, 4vw, 44px) 0 0; }

/* ======================= 04 COME LAVORIAMO ======================= */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { display: flex; flex-direction: column; min-height: 280px; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, color .4s, transform .4s var(--ease); }
.step:hover { background: var(--ink); color: var(--light); transform: translateY(-4px); }
.step:hover p { color: var(--light-2); }
.step__n { font-size: .82rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.45rem; margin: clamp(2.6rem, 6vw, 5rem) 0 .6rem; }
.step p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--muted); transition: color .4s; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } .step h3 { margin-top: 1.4rem; } }

/* ======================= 05 CONTATTI ======================= */
.contact { padding: clamp(80px, 11vw, 150px) var(--frame) 0; }
.contact__frame { border-radius: var(--r-xl); background: var(--ink); color: var(--light); padding: clamp(28px, 6vw, 88px) clamp(20px, 5vw, 80px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 96px); align-items: start; max-width: var(--wrap); margin-inline: auto; }
.contact__info .idx { margin-bottom: 1.6rem; }
.contact__info .h2 { margin-bottom: 1.2rem; }
.contact__lead { color: var(--light-2); max-width: 42ch; margin-bottom: 2rem; }
.clist { list-style: none; margin: 0 0 2.6rem; padding: 0; border-top: 1px solid var(--light-line); }
.citem { display: flex; align-items: center; gap: 1rem; padding: 1rem .2rem; border-bottom: 1px solid var(--light-line); text-decoration: none; color: var(--light); transition: padding .4s var(--ease), color .3s; }
.citem:hover { padding-inline-start: .8rem; }
.citem i { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.citem svg { width: 19px; height: 19px; }
.citem--wa i { color: #5fd897; }
.citem > span { min-width: 0; display: flex; flex-direction: column; }
.citem small { font-size: .76rem; color: var(--light-2); }
.citem strong { font-size: 1.12rem; font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; }
#phoneLink strong, #igLink strong, #mailLink strong, a[href^="tel:"], a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; }
.loc { padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-lg); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--light-line); }
.loc .eyebrow { margin-bottom: .4rem; }
.loc__title { font-size: 1.5rem; margin-bottom: .6rem; }
.loc__addr { color: var(--light); margin-bottom: .8rem; }
.loc__appt { font-size: .9rem; color: var(--light-2); margin-bottom: 1.2rem; }
.loc__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.loc__map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--ink-3); }
.loc__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.2rem; }
.map-ph > div { display: grid; justify-items: center; gap: .7rem; }
.map-ph svg { width: 30px; height: 30px; color: var(--wood); }
.map-ph p { margin: 0; max-width: 34ch; font-size: .8rem; color: var(--light-2); }
.map-ph a { color: var(--light); }
.map-ph strong { font-weight: 500; }
.map-ph .btn { background: var(--light); color: var(--ink); }

.form { padding: clamp(22px, 3.4vw, 44px); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); }
.form__title { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin-bottom: 1.6rem; }
.field { margin-bottom: 1rem; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); margin-bottom: .4rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 0; border-radius: 14px; padding: .9rem 1rem;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 2.6rem; }
[dir="rtl"] .field select { background-position: 14px 50%, 20px 50%; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--ink); }
.drop { position: relative; display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 1.1rem 1rem; border-radius: 14px; background: var(--paper); color: var(--muted); text-align: center; box-shadow: inset 0 0 0 1px var(--line); outline: 1.5px dashed var(--muted-2); outline-offset: -6px; transition: background .3s; }
.drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop svg { width: 24px; height: 24px; color: var(--ink); flex: none; }
.drop__text { font-size: .92rem; line-height: 1.4; }
.drop__text strong { color: var(--ink); font-weight: 600; }
.drop:hover, .drop.is-over { background: #fbfaf8; }
.drop:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.drop__list { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .7rem; }
.drop__list img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
.drop__clear { background: none; border: 0; padding: .3rem .4rem; font-size: .84rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.field__hint { font-size: .8rem; color: var(--muted); margin: .4rem 0 0; }
.field__err { color: var(--err); font-size: .84rem; margin: .4rem 0 0; }
.field__err:empty { display: none; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--err) !important; }
.field--check { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; align-items: start; margin: 1.2rem 0 1.4rem; }
.field--check input { width: 20px; height: 20px; margin: .2rem 0 0; accent-color: var(--ink); }
.field--check label { font-size: .88rem; font-weight: 400; color: #4a4640; margin: 0; line-height: 1.5; }
.field--check label a { color: var(--ink); text-underline-offset: 3px; }
.field--check .field__err { grid-column: 2; }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.form__status { margin-top: 1rem; font-size: .94rem; }
.form__status:empty { display: none; }
.form__status > div { padding: 1rem 1.1rem; border-radius: 14px; background: var(--paper); box-shadow: inset 3px 0 0 var(--ink); line-height: 1.55; }
.form__status .is-ok { box-shadow: inset 3px 0 0 var(--wa); }
.form__status .is-err { box-shadow: inset 3px 0 0 var(--err); }
[dir="rtl"] .form__status > div { box-shadow: inset -3px 0 0 var(--ink); }
[dir="rtl"] .form__status .is-ok { box-shadow: inset -3px 0 0 var(--wa); } [dir="rtl"] .form__status .is-err { box-shadow: inset -3px 0 0 var(--err); }
.form__status .btn { margin-top: .9rem; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } .contact__frame { padding-inline: 14px; } .form { padding: 20px 16px; } }

/* ======================= FOOTER ======================= */
.footer { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 110px) 0 0; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 70px); padding-bottom: 2.6rem; }
.footer__brand img { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1.2rem; }
.footer__brand p { max-width: 38ch; }
.footer__col { display: flex; flex-direction: column; gap: .5rem; }
.footer__col h3 { font-size: .82rem; font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: .5rem; }
.footer__col a { width: fit-content; text-decoration: none; color: var(--ink); opacity: .75; transition: opacity .3s; }
.footer__col a:hover { opacity: 1; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); font-size: .84rem; }
.footer__bottom p { margin: 0; }
.footer__claim { color: var(--ink); }
.footer__legal { flex-basis: 100%; font-size: .78rem; }
.footer__xl { margin-top: .5rem; text-align: center; white-space: nowrap; font-size: clamp(2.2rem, 9.8vw, 11rem); font-weight: 600; letter-spacing: -.065em; line-height: .78; transform: translateY(14%);
  background: linear-gradient(180deg, rgba(18, 17, 16, .9), rgba(18, 17, 16, .08) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
mark.todo { background: #f3dca3; color: #5a3e00; padding: 0 .3em; border-radius: 4px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ======================= WHATSAPP FLOTTANTE ======================= */
.fab { position: fixed; z-index: 90; inset-inline-end: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); transition: transform .4s var(--ease), opacity .4s; }
.fab svg { width: 26px; height: 26px; }
.fab:hover { transform: scale(1.08); }
.fab.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }

/* ======================= VIDEO ======================= */
.vmodal { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 20px; }
.vmodal__backdrop { position: absolute; inset: 0; background: rgba(12, 11, 10, .9); animation: fade .35s both; }
.vmodal video { position: relative; height: min(86svh, 960px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-lg); background: #000; animation: rise .5s var(--ease) both; object-fit: contain; }
.vmodal__close { position: absolute; z-index: 2; top: calc(16px + env(safe-area-inset-top, 0px)); inset-inline-end: 16px; }

/* ======================= LIGHTBOX ======================= */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(12, 11, 10, .94); animation: fade .35s both; }
.lb__btn { position: absolute; z-index: 3; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; transition: background .3s; }
.lb__btn svg { width: 20px; height: 20px; stroke-width: 2; }
.lb__btn:hover { background: rgba(255, 255, 255, .24); }
.lb__close { top: 18px; inset-inline-end: 18px; }
.lb__prev { inset-inline-start: 18px; top: 50%; margin-top: -25px; } .lb__next { inset-inline-end: 18px; top: 50%; margin-top: -25px; }
[dir="rtl"] .lb__btn svg { transform: scaleX(-1); }
.lb__fig { position: relative; z-index: 2; margin: 0; max-width: min(1100px, 100% - 140px); text-align: center; animation: rise .5s var(--ease) both; }
.lb__fig img { max-width: 100%; max-height: calc(100svh - 150px); margin-inline: auto; object-fit: contain; border-radius: var(--r-md); transition: opacity .3s; }
.lb__fig img.is-swap { opacity: 0; }
.lb__fig figcaption { margin-top: 1rem; color: var(--light); font-size: 1.05rem; display: flex; gap: 1rem; justify-content: center; align-items: baseline; flex-wrap: wrap; }
.lb__fig figcaption small { font-size: .8rem; color: var(--light-2); }
@media (max-width: 760px) {
  .lb__fig { max-width: 100%; padding: 0 10px; }
  .lb__btn { width: 44px; height: 44px; }
  .lb__prev, .lb__next { top: auto; bottom: 18px; margin: 0; }
  .lb__close { top: 10px; inset-inline-end: 10px; }
  .lb__fig img { max-height: calc(100svh - 190px); }
}

/* ======================= PRIVACY E NOTE LEGALI ======================= */
.modal { position: fixed; inset: 0; z-index: 230; display: grid; place-items: center; padding: 14px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 11, 10, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .35s both; }
.modal__panel { position: relative; width: min(760px, 100%); max-height: min(88svh, 900px); background: var(--surface); border-radius: var(--r-xl); overflow: hidden; animation: rise .45s var(--ease) both; }
.modal__close { position: absolute; z-index: 2; top: 14px; inset-inline-end: 14px; }
.modal__body { padding: clamp(24px, 4vw, 48px); overflow: auto; max-height: min(88svh, 900px); overscroll-behavior: contain; }
.modal__body h2 { font-size: 2.2rem; margin-bottom: 1rem; padding-inline-end: 3rem; }
.modal__body h3 { font-size: .84rem; font-weight: 600; letter-spacing: 0; color: var(--ink); margin: 1.6rem 0 .4rem; }
.modal__body p, .modal__body li { font-size: .95rem; color: #3f3a33; }
.modal__body ul { margin: .4rem 0 1rem; padding-inline-start: 1.2rem; }
.modal__body li { margin-bottom: .45rem; }
.modal__body a { color: var(--ink); }
.modal__body .legal-lead { color: var(--muted); }
.legal-list { margin: .4rem 0 1rem; }
.legal-list > div { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.legal-list dt { font-size: .86rem; color: var(--muted); }
.legal-list dd { margin: 0; font-size: .95rem; }
@media (max-width: 520px) { .legal-list > div { grid-template-columns: 1fr; gap: .1rem; } .modal__body h2 { font-size: 1.8rem; } }
.modal__body .legal-date { margin-top: 2rem; font-size: .86rem; color: var(--muted); }
.modal__body .draft { background: var(--paper); border-radius: 12px; padding: .8rem 1rem; font-size: .9rem; box-shadow: inset 3px 0 0 var(--wood); }

.toast { position: fixed; left: 50%; bottom: 90px; z-index: 250; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: .85rem 1.3rem; font-size: .92rem; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

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

/* ======================= ARABO / RTL ======================= */
html[lang="ar"] { --sans: "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, Inter, system-ui, sans-serif; }
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; }
html[lang="ar"] .statement { line-height: 1.5; }
/* il nome del marchio e i numeri restano in caratteri latini */
html[lang="ar"] .hero__brand, html[lang="ar"] .footer__xl, html[lang="ar"] .stat__num strong, html[lang="ar"] .lang, html[lang="ar"] .idx, html[lang="ar"] .step__n, html[lang="ar"] .slider__count, html[lang="ar"] .hero__count { font-family: Inter, system-ui, sans-serif; }
html[lang="ar"] .hero__brand, html[lang="ar"] .footer__xl { letter-spacing: -.065em !important; direction: ltr; }
[dir="rtl"] .citem:hover { padding-inline-start: .8rem; }
[dir="rtl"] .pill:hover .pill__dot, [dir="rtl"] .nav__cta:hover i { transform: rotate(-45deg) scaleX(-1); }
[dir="rtl"] .pill__dot svg, [dir="rtl"] .nav__cta svg { transform: scaleX(-1); }
[dir="rtl"] .hero__shade { background:
  linear-gradient(270deg, rgba(12, 11, 10, .82) 0%, rgba(12, 11, 10, .45) 45%, rgba(12, 11, 10, .2) 100%),
  linear-gradient(180deg, rgba(12, 11, 10, .35) 0%, rgba(12, 11, 10, 0) 30%, rgba(12, 11, 10, .55) 100%); }
@media (max-width: 860px) { [dir="rtl"] .hero__shade { background: linear-gradient(180deg, rgba(12, 11, 10, .45) 0%, rgba(12, 11, 10, .1) 35%, rgba(12, 11, 10, .78) 100%); } }
[dir="rtl"] .skip-link { left: auto; right: 12px; }
