/* ==========================================================================
   NOVASYSTEM — foglio di stile principale
   Palette e font ripresi dal sito originale.
   ========================================================================== */

:root {
  --red: #c11d46;          /* accento originale (link, bottoni) */
  --red-2: #b25061;        /* hover originale */
  --red-logo: #e30613;     /* rosso del marchio */
  --navy: #062a4d;         /* titoli */
  --ink: #0e0d12;          /* footer scuro */
  --text: #505e6d;         /* testo / menu */
  --muted: #758799;        /* testo secondario */
  --mist: #ebf2f3;         /* fondo chiaro */
  --line: #dfe6ea;
  --white: #ffffff;
  --alu-1: #fbfcfc;        /* profili alluminio */
  --alu-2: #dfe5e8;
  --alu-3: #b8c2c8;

  --f-head: "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Martel", Georgia, serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-1: 0 1px 2px rgba(6, 42, 77, .06), 0 4px 14px rgba(6, 42, 77, .06);
  --shadow-2: 0 10px 40px rgba(6, 42, 77, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --gutter: 20px;
  --maxw: 1240px;
  --appbar-h: 64px;
  --tabbar-h: 66px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);

  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--appbar-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--f-head); color: var(--navy); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: calc(12px + var(--sat)); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.section--mist { background: var(--mist); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-serif); font-weight: 400; font-size: .95rem;
  color: var(--red); margin-bottom: .9em; letter-spacing: .01em; text-transform: none;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--text); max-width: 62ch; }
.muted { color: var(--muted); }

/* ---------- bottoni ---------- */
.btn {
  --bg: var(--red); --fg: #fff; white-space: nowrap;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-head); font-weight: 500; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), color .2s;
  box-shadow: 0 6px 20px rgba(193, 29, 70, .28);
}
.btn::before { /* scorrimento come un'anta */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red-2);
  transform: translateX(-101%); transition: transform .45s var(--ease-io);
}
.btn:hover { color: var(--fg); }
.btn:hover::before { transform: translateX(0); }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg.i-arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost::before { background: var(--mist); }
.btn--light { --bg: #fff; --fg: var(--navy); box-shadow: var(--shadow-1); }
.btn--light::before { background: var(--mist); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 500; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; font-size: .9rem;
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip svg { width: 16px; height: 16px; color: var(--red); }

/* ---------- icone ---------- */
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   APP BAR (header)
   ========================================================================== */
.appbar {
  position: sticky; top: 0; z-index: 60;
  padding-top: var(--sat);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.appbar.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(6, 42, 77, .06); }
.appbar__inner { height: var(--appbar-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > a, .nav__drop > button, .nav__drop > .nav__droplink {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px;
  font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .07em; font-size: .92rem;
  color: var(--text); border-radius: 10px;
}
.nav > a::after, .nav__drop > button::after, .nav__drop > .nav__droplink::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav > a:hover, .nav__drop > button:hover, .nav > a[aria-current="page"], .nav__drop.is-current > button, .nav__drop.is-current > .nav__droplink, .nav__drop > .nav__droplink:hover { color: var(--navy); }
.nav > a:hover::after, .nav > a[aria-current="page"]::after, .nav__drop:hover > button::after, .nav__drop.is-current > button::after, .nav__drop:hover > .nav__droplink::after, .nav__drop.is-current > .nav__droplink::after { transform: scaleX(1); }
.nav__drop { position: relative; }
.nav__drop svg { width: 14px; height: 14px; transition: transform .3s; }
.nav__drop:hover svg, .nav__drop:focus-within svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 8px); left: 50%; width: min(760px, 90vw);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-2); padding: 14px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__drop:hover .mega, .nav__drop:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--navy); font-weight: 600; font-size: .95rem; line-height: 1.25; }
.mega a:hover { background: var(--mist); }
.mega img { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; flex: none; }
.mega a.mega__all { grid-column: 1 / -1; justify-content: center; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; color: var(--red); background: var(--mist); }
.appbar__cta { display: flex; align-items: center; gap: 10px; }
.appbar__cta .btn { min-height: 44px; padding: 0 18px; font-size: .85rem; box-shadow: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--navy);
  background: var(--mist); transition: transform .2s var(--ease), background .2s;
}
.icon-btn:hover { color: var(--red); }
.icon-btn:active { transform: scale(.92); }


/* ==========================================================================
   TAB BAR mobile (stile app)
   ========================================================================== */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none;
  padding: 0 8px var(--sab);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
}
.tabbar ul { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; height: var(--tabbar-h); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; width: 100%;
  color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .02em; position: relative;
  transition: color .2s;
}
.tab .i { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.tab:active .i { transform: scale(.86); }
.tab[aria-current="page"] { color: var(--red); }
.tab[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--red);
}
.tab--fab { color: var(--navy); }
.tab--fab .fab {
  width: 56px; height: 56px; margin-top: -26px; border-radius: 18px; display: grid; place-items: center;
  background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(193, 29, 70, .4), 0 0 0 5px #fff;
  transition: transform .25s var(--ease);
}
.tab--fab:active .fab { transform: scale(.92); }
.tab--fab[aria-current="page"]::before { display: none; }
.tab--fab[aria-current="page"] { color: var(--red); }

/* ==========================================================================
   BOTTOM SHEET
   ========================================================================== */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(6, 18, 33, .45);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  max-height: 88vh; overflow: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + var(--sab));
  transform: translateY(105%); transition: transform .45s cubic-bezier(.2, .9, .2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .18);
}
.sheet.is-open { transform: translateY(0); }
.sheet.is-open + .sheet-backdrop, .sheet-backdrop.is-open { opacity: 1; visibility: visible; }
.sheet__grip { width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 14px; }
.sheet__title { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: .8rem; margin: 18px 4px 8px; }
.sheet__list { list-style: none; margin: 0; padding: 0; background: var(--mist); border-radius: 18px; overflow: hidden; }
.sheet__list li + li { border-top: 1px solid rgba(6, 42, 77, .07); }
.sheet__list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--navy); font-weight: 600; }
.sheet__list a .i:first-child { color: var(--red); }
.sheet__list a .i-chev { margin-left: auto; color: var(--muted); width: 18px; height: 18px; }
.sheet__list a:active { background: rgba(6, 42, 77, .05); }
.sheet__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sheet__quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: 18px; background: var(--mist); color: var(--navy); font-weight: 600; font-size: .85rem; }
.sheet__quick a .i { color: var(--red); width: 26px; height: 26px; }
body.sheet-open { overflow: hidden; }

/* ==========================================================================
   HERO HOME — slideshow con transizione "a lamelle"
   ========================================================================== */
.hero {
  position: relative; height: min(88vh, 900px); min-height: 560px; overflow: hidden; background: var(--navy);
  isolation: isolate;
}
.hero__media, .hero__media .slide, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; }
.hero__media .slide { opacity: 0; }
.hero__media .slide.is-active { opacity: 1; }
.hero__media .slide.is-active img { animation: kenburns 9s linear both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 42, 77, .25) 0%, rgba(6, 42, 77, 0) 30%, rgba(6, 20, 38, .15) 50%, rgba(6, 20, 38, .78) 100%);
}
/* bande lamellari durante il cambio slide */
.louvre-x { position: absolute; inset: 0; z-index: 1; perspective: 1400px; }
.louvre-x .band { position: absolute; inset: 0; animation: bandIn 1s var(--ease-io) both; animation-delay: calc(var(--i) * 55ms); backface-visibility: hidden; }
.louvre-x .band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes bandIn {
  from { transform: rotateX(-90deg); filter: brightness(1.5) contrast(.8); }
  to { transform: rotateX(0); filter: none; }
}
.hero__content {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding-bottom: clamp(40px, 8vh, 90px); color: #fff;
}
.hero__content .kicker { color: #fff; }
.hero__title { color: #fff; font-size: clamp(2.6rem, 8vw, 6rem); font-weight: 500; line-height: 1; margin-bottom: .35em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
.hero__text { max-width: 560px; color: rgba(255, 255, 255, .9); font-size: 1.15rem; margin-bottom: 28px; opacity: 0; transform: translateY(14px); transition: opacity .8s .35s, transform .8s .35s var(--ease); }
.hero__caption { display: none; }
.hero__caption.is-active { display: block; }
.hero__caption.is-in .line > span { transform: translateY(0); }
.hero__caption.is-in .line:nth-child(2) > span { transition-delay: .1s; }
.hero__caption.is-in .hero__text { opacity: 1; transform: none; }
.hero__caption .kicker { opacity: 0; transition: opacity .6s; }
.hero__caption.is-in .kicker { opacity: 1; }
.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* barre di avanzamento stile "stories" */
.stories { position: absolute; z-index: 4; top: 18px; left: var(--gutter); right: var(--gutter); display: flex; gap: 6px; max-width: var(--maxw); margin: 0 auto; }
.stories button { flex: 1; height: 22px; display: flex; align-items: center; }
.stories button span { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.stories button span i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.stories button.is-done span i { transform: scaleX(1); }
.stories button.is-active span i { animation: storyfill var(--dur, 7s) linear forwards; }
.hero.is-paused .stories button.is-active span i { animation-play-state: paused; }
@keyframes storyfill { to { transform: scaleX(1); } }
.hero__tap { position: absolute; z-index: 3; top: 0; bottom: 35%; width: 30%; }
.hero__tap--prev { left: 0; }
.hero__tap--next { right: 0; }

.scroll-cue { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
.scroll-cue span { width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .7); position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* intro: due ante scorrevoli che si aprono sulla home */
.intro-sash { position: absolute; inset: 0; z-index: 8; display: flex; pointer-events: none; }
.intro-sash .sash {
  flex: 1; position: relative;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .08) 32%, rgba(255, 255, 255, .28) 46%, rgba(255, 255, 255, .05) 62%, rgba(255, 255, 255, .2) 100%),
    rgba(214, 228, 234, .55);
  -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%);
  border: 14px solid var(--alu-1);
  box-shadow: inset 0 0 0 1px var(--alu-3), inset 0 0 30px rgba(6, 42, 77, .15), 0 0 0 1px var(--alu-2);
  transition: transform 1.5s var(--ease-io);
}
.intro-sash .sash::after { /* maniglia */
  content: ""; position: absolute; top: 50%; width: 8px; height: 90px; margin-top: -45px; border-radius: 4px;
  background: linear-gradient(90deg, #9aa5ab, #e8ecee, #9aa5ab); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.intro-sash .sash--l::after { right: 14px; }
.intro-sash .sash--r::after { left: 14px; }
.intro-sash .sash--l { border-right-width: 7px; }
.intro-sash .sash--r { border-left-width: 7px; }
.intro-sash.is-open .sash--l { transform: translateX(-101%); }
.intro-sash.is-open .sash--r { transform: translateX(101%); }
.intro-sash.is-done { display: none; }

/* ==========================================================================
   HERO PAGINE INTERNE
   ========================================================================== */
.phero { position: relative; padding: clamp(28px, 5vw, 56px) 0 0; }
.phero__grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: end; }
.phero h1 { font-size: clamp(2.4rem, 6.4vw, 4.8rem); margin-bottom: .25em; }
.phero .lead { margin-bottom: 0; }
.phero__media { position: relative; margin-top: clamp(24px, 4vw, 44px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.crumbs svg { width: 14px; height: 14px; }

/* ==========================================================================
   SCENA ANIMATA — finestre, lamelle, vetrate, tende...
   Ogni scena ha una foto e degli elementi "serramento" sopra,
   pilotati dalla variabile --p (0 = chiuso, 1 = aperto).
   ========================================================================== */
.scene {
  --p: 0;
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--navy);
  aspect-ratio: 16 / 9; isolation: isolate; box-shadow: var(--shadow-2);
}
.scene--tall { aspect-ratio: 4 / 3; }
.scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.08 - var(--p) * .08)); }
.scene__label {
  position: absolute; z-index: 6; left: 14px; top: 14px; max-width: calc(100% - 28px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--navy); font-weight: 700; font-size: .85rem;
  box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.scene__label .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(193, 29, 70, .18); }
.scene__toggle {
  position: absolute; z-index: 6; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), background .2s;
}
.scene__toggle:hover { background: var(--red); }
.scene__toggle:active { transform: scale(.95); }
.scene__toggle svg { width: 18px; height: 18px; }
.scene__meter { position: absolute; z-index: 6; bottom: 16px; left: 14px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(6, 42, 77, .7); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .04em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.scene__meter b { font-variant-numeric: tabular-nums; min-width: 3.2ch; text-align: right; }

/* --- 1) Pergola bioclimatica: lamelle orientabili --- */
.louvres { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; perspective: 900px; }
.louvres i {
  flex: 1; display: block;
  background: linear-gradient(180deg, var(--alu-1) 0%, #eef2f4 45%, var(--alu-2) 80%, var(--alu-3) 100%);
  box-shadow: 0 2px 3px rgba(6, 42, 77, .25);
  transform: rotateX(calc(var(--p) * 82deg));
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}
.louvres::before { /* trave perimetrale */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 0 12px var(--alu-1), inset 0 0 0 13px var(--alu-3);
  border-radius: inherit;
}
.sunlight { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--p); mix-blend-mode: soft-light; background: radial-gradient(120% 80% at 70% 0%, rgba(255, 236, 190, .9), transparent 60%); }

/* --- 2) Vetrate a libro (VEPA): ante che si piegano a fisarmonica --- */
.fold { position: absolute; inset: 0; z-index: 2; display: flex; perspective: 1600px; }
.fold i {
  --s: 1;
  flex: 1; display: block; position: relative;
  background: linear-gradient(115deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .06) 35%, rgba(255, 255, 255, .26) 48%, rgba(255, 255, 255, .04) 70%, rgba(255, 255, 255, .18) 100%), rgba(200, 222, 232, .22);
  -webkit-backdrop-filter: blur(calc((1 - var(--p)) * 5px)); backdrop-filter: blur(calc((1 - var(--p)) * 5px));
  border: 5px solid var(--alu-1); border-top-width: 10px; border-bottom-width: 10px;
  box-shadow: inset 0 0 0 1px var(--alu-3);
  transform-origin: 0 50%;
  transform: translateX(calc(var(--k) * -100% * var(--p) * .93)) rotateY(calc(var(--s) * var(--p) * 78deg));
}
.fold i:nth-child(even) { --s: -1; }

/* --- 3) Giardino d'inverno / scorrevoli: ante che scorrono e si impacchettano --- */
.slide-panels { position: absolute; inset: 0; z-index: 2; display: flex; }
.slide-panels i {
  flex: 1; display: block; position: relative;
  background: linear-gradient(115deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .08) 38%, rgba(255, 255, 255, .25) 50%, rgba(255, 255, 255, .05) 72%), rgba(205, 224, 232, .28);
  -webkit-backdrop-filter: blur(calc((1 - var(--p)) * 6px)); backdrop-filter: blur(calc((1 - var(--p)) * 6px));
  border: 6px solid var(--alu-1); box-shadow: inset 0 0 0 1px var(--alu-3), 4px 0 10px rgba(6, 42, 77, .12);
  transform: translateX(calc(var(--r) * 100% * var(--p) * .97));
}
.slide-panels i::after { content: ""; position: absolute; top: 50%; left: 8px; width: 4px; height: 46px; margin-top: -23px; border-radius: 3px; background: linear-gradient(90deg, #9aa5ab, #eef1f2); }
.slide-panels--pool i { /* copertura telescopica per piscina: moduli in policarbonato */
  background: linear-gradient(180deg, rgba(220, 238, 246, .55), rgba(150, 196, 214, .35) 70%, rgba(110, 160, 182, .4)), linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, .5) 50%, transparent 50.5%);
  border-radius: 40% 40% 0 0 / 22% 22% 0 0; border-width: 6px 6px 0;
}
.slide-panels--pool i::after { display: none; }

/* --- 4) Schermature solari: tenda che si avvolge sul rullo --- */
.awning { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: calc((1 - var(--p)) * 100%); }
.awning--down { height: calc(var(--p) * 46%); }
.awning__fabric {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .0) 0 46px, rgba(255, 255, 255, .14) 46px 92px),
    linear-gradient(180deg, #ece6dc, #ddd4c6);
  box-shadow: 0 16px 30px rgba(6, 20, 38, .3);
}
.awning__bar { position: absolute; left: 0; right: 0; bottom: -8px; height: 16px; border-radius: 8px; background: linear-gradient(180deg, var(--alu-1), var(--alu-3)); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.awning__box { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 18px; background: linear-gradient(180deg, var(--alu-1), var(--alu-2)); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(6, 20, 38, .55), rgba(6, 20, 38, .1) 70%, transparent); opacity: calc(var(--p) * .8); }

/* --- 5) Ombrellone: la tela si apre a ottagono --- */
.scene--umbrella > img { clip-path: polygon(
  calc(50% + var(--rr) * .383) calc(50% - var(--rr) * .924), calc(50% + var(--rr) * .924) calc(50% - var(--rr) * .383),
  calc(50% + var(--rr) * .924) calc(50% + var(--rr) * .383), calc(50% + var(--rr) * .383) calc(50% + var(--rr) * .924),
  calc(50% - var(--rr) * .383) calc(50% + var(--rr) * .924), calc(50% - var(--rr) * .924) calc(50% + var(--rr) * .383),
  calc(50% - var(--rr) * .924) calc(50% - var(--rr) * .383), calc(50% - var(--rr) * .383) calc(50% - var(--rr) * .924)); }
.scene--umbrella { --rr: calc(4% + var(--p) * 100%); background: var(--mist); }
.ribs { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: calc(1 - var(--p)); }
.ribs i { position: absolute; left: 50%; top: 50%; width: 2px; height: 48%; margin-left: -1px; background: linear-gradient(var(--navy), transparent); transform-origin: 50% 0; transform: rotate(calc(var(--k) * 45deg)); }

/* --- 6) Porta tessile a pannelli (arredo interni) --- */
.pleats { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: flex-end; perspective: 1200px; }
.pleats i {
  display: block; height: 100%; width: calc(100% / 8 * (1 - var(--p) * .93));
  background: linear-gradient(90deg, #f5f2ed, #e3ddd4 50%, #f8f6f2);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .06);
}
.pleats i:nth-child(even) { background: linear-gradient(90deg, #e8e2d9, #fbfaf7 50%, #ded7cc); }

/* --- 7) Infissi: finestra a due ante che si apre --- */
.casement { position: absolute; inset: 0; z-index: 2; display: flex; perspective: 1400px; border: 16px solid var(--alu-1); box-shadow: inset 0 0 0 1px var(--alu-3); }
.casement i {
  flex: 1; display: block; position: relative;
  background: linear-gradient(120deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .08) 34%, rgba(255, 255, 255, .28) 46%, rgba(255, 255, 255, .04) 66%), rgba(200, 222, 232, .3);
  border: 12px solid var(--alu-1); box-shadow: inset 0 0 0 1px var(--alu-3), 0 0 18px rgba(6, 42, 77, .2);
  -webkit-backdrop-filter: blur(calc((1 - var(--p)) * 4px)); backdrop-filter: blur(calc((1 - var(--p)) * 4px));
}
.casement i:first-child { transform-origin: 0 50%; transform: rotateY(calc(var(--p) * -100deg)); }
.casement i:last-child { transform-origin: 100% 50%; transform: rotateY(calc(var(--p) * 100deg)); }
.casement i::after { content: ""; position: absolute; top: 50%; width: 10px; height: 60px; margin-top: -30px; border-radius: 5px; background: linear-gradient(90deg, #8f9aa0, #f1f4f5, #8f9aa0); box-shadow: 0 2px 5px rgba(0, 0, 0, .3); }
.casement i:first-child::after { right: 6px; }
.casement i:last-child::after { left: 6px; }

/* --- 8) Arredo outdoor: telo che scivola via --- */
.curtain { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, #f3efe8, #e6dfd3); transform: translateY(calc(var(--p) * 101%)); }
.curtain::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: linear-gradient(180deg, var(--alu-2), var(--alu-3)); }

/* ==========================================================================
   SEZIONI HOME
   ========================================================================== */
.story { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.story__years { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.story__num { font-family: var(--f-head); font-weight: 500; font-size: clamp(5.5rem, 16vw, 9.5rem); line-height: .82; color: var(--red); font-variant-numeric: tabular-nums; }
.story__unit { font-family: var(--f-head); text-transform: uppercase; color: var(--navy); font-size: 1.15rem; letter-spacing: .1em; line-height: 1.2; padding-bottom: 6px; }
.story__unit small { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .14em; }
.story__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.split__text h2 { margin-bottom: .4em; }

/* card soluzioni — l'immagine viene "aperta" da un'anta in vetro */
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-1); color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: var(--text); }
.card:active { transform: scale(.985); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { margin: 0; font-size: .98rem; }
.card__tag { font-family: var(--f-serif); font-size: .82rem; color: var(--red); }
.card__go { margin-top: auto; padding-top: 12px; }
.card__badge { position: absolute; top: 14px; left: 14px; z-index: 3; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--navy); font-family: var(--f-head); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.glass-reveal::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .15) 40%, rgba(255, 255, 255, .4) 55%, rgba(255, 255, 255, .12)), rgba(214, 228, 234, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-left: 8px solid var(--alu-1); box-shadow: inset 1px 0 0 var(--alu-3);
  transform: translateX(0); transition: transform 1.1s var(--ease-io);
}
.js .glass-reveal.in::after { transform: translateX(101%); }
html:not(.js) .glass-reveal::after { display: none; }

/* scroller orizzontale stile app */
.hscroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 22px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.hscroll-dots { display: flex; justify-content: center; gap: 6px; margin-top: -6px; }
.hscroll-dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.hscroll-dots i.on { width: 22px; background: var(--red); }

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: clamp(26px, 4vw, 48px); }
.sec-head h2 { margin: 0; }
.sec-head p { max-width: 520px; margin: 0; }

/* partner — marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { width: 150px; height: 150px; border-radius: 22px; object-fit: cover; background: #fff; box-shadow: var(--shadow-1); filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s, transform .3s var(--ease); }
.marquee__track img:hover { filter: none; opacity: 1; transform: translateY(-3px); }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }

/* galleria realizzazioni */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery a { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--mist); }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::before { content: ""; position: absolute; inset: 0; z-index: 1; box-shadow: inset 0 0 0 0 rgba(255, 255, 255, .9); transition: box-shadow .4s var(--ease); border-radius: inherit; }
.gallery a:hover::before { box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .9); }

/* CTA band */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--navy); color: #fff;
  padding: clamp(32px, 6vw, 72px); display: grid; gap: 24px;
}
.cta h2 { color: #fff; margin: 0; max-width: 20ch; }
.cta p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta::before { /* telaio decorativo */
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border: 18px solid rgba(255, 255, 255, .06); border-radius: 30px; transform: rotate(12deg);
}
.cta::after { content: ""; position: absolute; right: 40px; top: 40px; width: 180px; height: 180px; border: 10px solid rgba(193, 29, 70, .5); border-radius: 18px; transform: rotate(12deg); }
.cta > * { position: relative; z-index: 1; }

/* ==========================================================================
   FORM
   ========================================================================== */
.form-card { background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-2); position: relative; }
.form-card h2, .form-card h3 { margin-bottom: .2em; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 58px; padding: 24px 16px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: #fbfcfd;
  font-size: 16px; color: var(--navy); transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; padding-top: 28px; }
.field label { position: absolute; left: 17px; top: 18px; color: var(--muted); font-size: 1rem; pointer-events: none; transition: transform .2s var(--ease), font-size .2s, color .2s; transform-origin: left top; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(193, 29, 70, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px); font-size: .76rem; color: var(--red); font-weight: 700; letter-spacing: .02em; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); background: #fff6f8; }
.field__err { display: none; font-size: .82rem; color: var(--red); margin-top: 4px; padding-left: 4px; }
.field.is-invalid .field__err { display: block; }
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset legend { font-weight: 700; color: var(--navy); margin-bottom: 10px; font-size: .98rem; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fbfcfd;
  color: var(--navy); font-weight: 600; font-size: .95rem; line-height: 1.2; transition: border-color .2s, background .2s, transform .15s;
}
.seg span .i { color: var(--muted); width: 22px; height: 22px; transition: color .2s; }
.seg label:active span { transform: scale(.97); }
.seg input:checked + span { border-color: var(--red); background: #fff4f6; box-shadow: 0 0 0 3px rgba(193, 29, 70, .1); }
.seg input:checked + span .i { color: var(--red); }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .82rem; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); }
.check a { font-weight: 700; }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.form-status { display: none; margin-top: 14px; padding: 14px 16px; border-radius: 14px; font-weight: 600; font-size: .95rem; }
.form-status.is-error { display: block; background: #fff4f6; color: var(--red); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__txt { opacity: .4; }
.btn.is-loading::after { content: ""; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* stato di invio riuscito: una finestra che si chiude con la spunta */
.success { display: none; text-align: center; padding: 26px 6px 6px; }
.form-card.is-sent .success { display: block; }
.form-card.is-sent form { display: none; }
.success__win { width: 110px; height: 110px; margin: 0 auto 18px; border-radius: 18px; border: 8px solid var(--alu-2); position: relative; display: grid; place-items: center; background: linear-gradient(135deg, #f5fafc, #e6eff3); overflow: hidden; }
.success__win svg { width: 54px; height: 54px; stroke: var(--red); stroke-width: 3; fill: none; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .5s var(--ease) forwards; }
.success__win::before, .success__win::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; background: rgba(200, 222, 232, .9); border: 3px solid var(--alu-2); animation: shut .7s var(--ease-io) reverse both; }
.success__win::before { left: 0; transform-origin: left; }
.success__win::after { right: 0; transform-origin: right; }
@keyframes shut { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* wizard preventivo */
.wizard__bar { height: 6px; background: var(--mist); border-radius: 6px; overflow: hidden; margin: 18px 0 6px; }
.wizard__bar i { display: block; height: 100%; width: calc(var(--step, 1) / 3 * 100%); background: var(--red); border-radius: 6px; transition: width .5s var(--ease); }
.wizard__count { font-size: .8rem; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wstep { display: none; animation: stepIn .45s var(--ease) both; }
.wstep.is-active { display: block; }
.js .wstep h3 { margin-top: 18px; }
html:not(.js) .wstep { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.wizard__nav { display: flex; gap: 10px; margin-top: 20px; }
.wizard__nav .btn { flex: 1; }
.wizard__nav .btn--ghost { flex: 0 0 auto; }

/* ==========================================================================
   PAGINE
   ========================================================================== */
/* elenco soluzioni */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 22px; padding: 4px var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--mist); color: var(--navy); font-weight: 700; font-size: .9rem; transition: background .25s, color .25s, transform .15s; }
.filters button:active { transform: scale(.95); }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.card.is-hidden { display: none; }

/* contenuti prodotto */
.prose { max-width: 70ch; }
.prose p { font-size: 1.08rem; }
.prose strong { color: var(--navy); }
.prose h3, .prose h4, .prose h5 { margin-top: 1.6em; }
.prose h5 { font-size: 1.1rem; }
.prose ul { padding-left: 1.2em; }
.product { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.product__aside { position: relative; }
.benefits { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--mist); border-radius: 16px; color: var(--navy); font-weight: 600; line-height: 1.35; }
.benefits li .i { color: var(--red); margin-top: 1px; }
.replay { position: absolute; z-index: 6; bottom: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--navy); font-weight: 700; font-size: .8rem; box-shadow: var(--shadow-1); }
.replay svg { width: 16px; height: 16px; }

/* noleggio vs leasing */
.compare { display: grid; grid-template-columns: 1fr; gap: 16px; }
.compare__col { border-radius: var(--r-lg); padding: 26px; background: #fff; box-shadow: var(--shadow-1); }
.compare__col--win { background: var(--navy); color: #fff; box-shadow: var(--shadow-2); }
.compare__col--win h3 { color: #fff; }
.compare__col ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.compare__col li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.4; }
.compare__col li .i { margin-top: 1px; }
.compare__col--win li .i { color: #7fd4a0; }
.compare__col:not(.compare__col--win) li .i { color: var(--red); }
.compare-switch { display: none; }

/* contatti */
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.ccard { border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.ccard__media { aspect-ratio: 960 / 456; overflow: hidden; position: relative; }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; }
.ccard__body { padding: 22px; display: grid; gap: 12px; }
.ccard__body h3 { margin: 0; }
.ccard__row { display: flex; gap: 12px; align-items: flex-start; color: var(--navy); }
.ccard__row .i { color: var(--red); margin-top: 2px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; font-size: .97rem; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
.open-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--muted); }
.open-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-badge.is-open { color: #1f8a4c; background: #e7f6ed; }
.map { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--mist), #dde8ea); display: grid; place-items: center; text-align: center; padding: 20px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__inner { display: grid; gap: 14px; justify-items: center; max-width: 420px; }
.map__inner .i { width: 40px; height: 40px; color: var(--red); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-1); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px; font-family: var(--f-head); text-transform: uppercase; color: var(--navy); font-size: 1.1rem; letter-spacing: .02em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--mist); position: relative; transition: background .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--red); border-radius: 2px; transition: transform .35s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { background: var(--red); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: #fff; transform: rotate(180deg); }
.faq .faq__a { padding: 0 22px 22px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: #b7b7b7; padding: clamp(48px, 7vw, 84px) 0 32px; margin-top: clamp(40px, 6vw, 80px); }
.footer a { color: #e7e9ec; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.footer__logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 14px; }
.footer__logo img { height: 40px; width: auto; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .12em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .2s, transform .2s; }
.footer__social a:hover { background: var(--red); transform: translateY(-2px); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; font-size: .85rem; color: #8b8f96; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(6, 12, 22, .92); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 84vh; width: auto; border-radius: 16px; transform: scale(.94); transition: transform .4s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox button { position: absolute; top: calc(16px + var(--sat)); right: 16px; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }

/* ==========================================================================
   REVEAL allo scroll
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* transizioni di pagina native (Chrome / Safari recenti) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
.appbar { view-transition-name: appbar; }
.tabbar { view-transition-name: tabbar; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid--2 .span-2 { grid-column: 1 / -1; }
  .hscroll { grid-auto-columns: 46%; }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; --appbar-h: 78px; }
  .brand img { height: 46px; }
  .story { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .split { grid-template-columns: 1fr 1.15fr; gap: 64px; }
  .split--rev .split__text { order: 2; }
  .split--rev { grid-template-columns: 1.15fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .hscroll { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 22px; }
  .hscroll-dots { display: none; }
  .phero__grid { grid-template-columns: 1.3fr 1fr; gap: 48px; }
  .product { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .product__aside { position: sticky; top: calc(var(--appbar-h) + 24px); }
  .compare { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .cta { grid-template-columns: 1.4fr auto; align-items: center; }
  .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
}
@media (max-width: 1080px) and (min-width: 900px) {
  .nav > a, .nav__drop > button, .nav__drop > .nav__droplink { padding: 0 9px; font-size: .85rem; }
}
@media (max-width: 899px) {
  :root { --gutter: 18px; }
  body { padding-bottom: calc(var(--tabbar-h) + var(--sab)); font-size: 16.5px; }
  .nav, .appbar__cta .btn { display: none; }
  .appbar .icon-btn--call { display: inline-grid; }
  .appbar__cta { margin-left: auto; }
  .brand img { height: 34px; }
  .tabbar { display: block; }
  .hero { height: calc(100svh - var(--appbar-h) - var(--sat) - var(--tabbar-h) - var(--sab) - 18px); min-height: 480px; max-height: 760px; margin: 0 10px; border-radius: 26px; }
  .hero__title { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .hero__text { font-size: 1.02rem; margin-bottom: 20px; }
  .scroll-cue { display: none; }
  .hero__bottom .btn-row { width: 100%; }
  .hero__bottom .btn-row .btn { flex: 1; padding: 0 16px; }
  .scene { border-radius: 22px; }
  .phero__media .scene { margin: 0 calc(var(--gutter) * -1 + 10px); }
  .footer { padding-bottom: 24px; }
  .compare-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--mist); margin-bottom: 14px; position: relative; }
  .compare-switch button { position: relative; z-index: 1; min-height: 44px; border-radius: 11px; font-weight: 700; color: var(--navy); transition: color .3s; }
  .compare-switch button[aria-selected="true"] { color: #fff; }
  .compare-switch::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 11px; background: var(--navy); transition: transform .35s var(--ease); }
  .compare-switch[data-tab="1"]::before { transform: translateX(100%); background: var(--red); }
  .js .compare__col { display: none; }
  .js .compare__col.is-active { display: block; animation: stepIn .35s var(--ease) both; }
  .marquee__track img { width: 112px; height: 112px; border-radius: 18px; }
}
/* PWA in standalone: rispetta la notch */
@media (display-mode: standalone) {
  .appbar { padding-top: max(var(--sat), 6px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .intro-sash { display: none; }
}

/* ---- v2: solo testi originali ---- */
.scene__toggle--icon { width: 46px; padding: 0; justify-content: center; }
.scene__toggle--icon span { display: none; }
.scene__toggle[aria-pressed="true"] { background: var(--red); }
.replay--icon { width: 40px; padding: 0; justify-content: center; }
.card__go { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mist); color: var(--red); }
.card__go svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.card:hover .card__go svg { transform: translateX(3px); }
.form-card__title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.split__sub { color: var(--red); font-size: clamp(1.1rem, 2vw, 1.35rem); margin: .2em 0 .6em; }
.scene-link { display: block; color: inherit; }
.ccard__row { color: var(--navy); }
a.ccard__row:hover { color: var(--red); }
.appbar__cta { margin-left: 8px; }
@media (max-width: 899px) { .appbar__cta { margin-left: auto; } }

/* sedi showroom */
.loc { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.loc__city { font-size: 1rem; letter-spacing: .1em; color: var(--red); margin: 0; }
.maps { display: grid; gap: 22px; }
.maps .loc__city { margin-bottom: 10px; }
@media (min-width: 900px) { .maps { grid-template-columns: 1fr 1fr; } }

/* scelta della sede da chiamare */
.call-list a { padding: 16px; }
.call-list a .i { width: 26px; height: 26px; padding: 10px; box-sizing: content-box; border-radius: 14px; background: #fff; color: var(--red); }
.call-list a span { display: grid; line-height: 1.25; }
.call-list a strong { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; font-size: 1.05rem; }
.call-list a small { color: var(--text); font-size: 1rem; font-weight: 600; }
.sheet--call { padding-top: 10px; }
@media (min-width: 900px) {
  .sheet--call {
    left: auto; right: max(24px, calc((100vw - var(--maxw)) / 2 + var(--gutter))); bottom: auto; top: calc(var(--appbar-h) + var(--sat) + 10px);
    width: 340px; border-radius: 20px; padding: 10px; box-shadow: var(--shadow-2);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .25s, visibility .25s;
  }
  .sheet--call.is-open { transform: none; opacity: 1; visibility: visible; }
  .sheet--call .sheet__grip { display: none; }
  .sheet-backdrop.is-open { background: rgba(6, 18, 33, .12); }
  body.sheet-open { overflow: auto; }
}
