/* =========================================================
   BLOXY – stylesheet
   ========================================================= */
/* Elms Sans (SIL OFL) – self-hosted */
@font-face { font-family: "Elms Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/elms-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Elms Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/elms-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Elms Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/elms-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Elms Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/elms-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Elms Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/elms-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --teal: #265C61;
  --teal-dark: #1B3539;
  --teal-ink: #1E3A3E;
  --cream: #EDE6DD;
  --cream-light: #FBF7F4;
  --icon-bg: #C8D2D0;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1260px;
  --gutter: clamp(20px, 5vw, 88px);
  --font: "Elms Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--teal-ink);
  background: var(--cream-light);
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Typography ---------- */
.h-display {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .03em;
  color: var(--teal);
}
.h-bold { font-weight: 500; }
.h-section { font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 400; color: var(--teal); letter-spacing: .03em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 11px 18px; border-radius: 8px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: .02em; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.btn-dark { background: var(--teal-dark); color: var(--white); }
.btn-dark:hover { background: var(--teal); }
.btn-sm { padding: 10px 28px; font-size: 14px; }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); padding: 9px 20px; font-size: 17px; }
.btn-outline:hover { background: var(--white); color: var(--teal-dark); }
.btn-arrow svg { transition: transform .25s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding: 24px 0;
}
.site-header.is-scrolled { background: rgba(251, 247, 244, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(38, 92, 97, .12); padding: 12px 0; }
.header-inner { display: flex; align-items: center; gap: 40px; }
.logo img { width: clamp(120px, 12vw, 182px); height: auto; transition: width .35s var(--ease); }
.is-scrolled .logo img { width: 130px; }
.main-nav { display: flex; gap: clamp(24px, 5vw, 90px); margin-left: clamp(0px, 2vw, 40px); }
.main-nav a { font-size: 15px; font-weight: 500; position: relative; padding: 4px 0; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 36px; }
.lang { display: flex; gap: 20px; }
.lang button { background: none; border: 0; padding: 2px 0; cursor: pointer; font-size: 15px; font-weight: 500; opacity: .75; border-bottom: 1.5px solid transparent; }
.lang button.is-active { opacity: 1; border-bottom-color: currentColor; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--teal-dark); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Glass cards ---------- */
.glass-card {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.2;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.glass-card:hover { transform: translateY(-6px); }
.glass-card--light { background: rgba(214, 196, 186, .38); color: var(--teal); font-size: clamp(15px, 1.3vw, 19px); border: 1px solid rgba(255,255,255,.25); }
.glass-card--light:hover { background: rgba(214, 196, 186, .6); }
.glass-card--dark { background: rgba(255, 255, 255, .28); color: var(--white); font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; border: 1px solid rgba(255,255,255,.3); }
.glass-card--dark:hover { background: rgba(255, 255, 255, .4); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: #E8DCD2; }
.hero-media { position: absolute; inset: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(240, 228, 218, .55) 0%, rgba(240, 228, 218, 0) 55%); }
.hero-content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 6vw, 60px); }
.hero-title { font-size: clamp(2.6rem, 5.4vw, 4.9rem); line-height: 1; letter-spacing: .03em; color: var(--teal); font-weight: 400; margin-bottom: clamp(28px, 3vw, 36px); }
.hero-title strong { display: block; font-weight: 600; }
.hero-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 16px; }
.hero-cards .glass-card { aspect-ratio: 1 / 1; padding: 12px; }

/* ---------- Protect / marquee ---------- */
.protect {
  position: relative; overflow: hidden;
  background: #EAF0EE url("../img/protegge.jpg") center / cover no-repeat;
  padding: clamp(70px, 8vw, 100px) 0 clamp(60px, 7vw, 90px);
  text-align: center;
}
.protect-intro { font-size: clamp(16px, 1.4vw, 19px); position: relative; z-index: 2; }
.protect-stage { position: relative; margin-top: clamp(30px, 4vw, 50px); min-height: clamp(220px, 24vw, 340px); display: flex; align-items: center; }
.protect-pack { position: absolute; left: 50%; top: 50%; width: min(52vw, 680px); height: auto; transform: translate(-50%, -50%); opacity: .95; pointer-events: none; mix-blend-mode: multiply; }
.marquee { position: relative; z-index: 2; width: 100%; display: grid; gap: clamp(0px, 1vw, 12px); }
.marquee-row { overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex; gap: .35em; font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: 1.15;
  color: var(--teal); letter-spacing: .03em; will-change: transform;
}
.marquee-track span { flex-shrink: 0; padding-right: .35em; }
.marquee-row--left .marquee-track { animation: marquee-left 38s linear infinite; }
.marquee-row--right .marquee-track { animation: marquee-right 38s linear infinite; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.protect-cta { position: relative; z-index: 2; margin-top: clamp(30px, 4vw, 50px); }

/* ---------- Challenge ---------- */
.challenge { position: relative; overflow: hidden; color: var(--teal-ink); min-height: clamp(560px, 60vw, 780px); padding: clamp(60px, 6vw, 90px) 0; display: flex; align-items: center; }
.challenge-bg { position: absolute; inset: 0; background: #3b2a1a; }
.challenge-layer { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.6s var(--ease); }
.challenge-layer.is-active { opacity: 1; transform: scale(1); }
.challenge-inner { position: relative; z-index: 2; }
.challenge-items { display: flex; align-items: center; justify-content: center; gap: 22px; }
.ch-item { flex: 0 0 auto; }
.ch-tab { width: 244px; height: 250px; }
.ch-panel { display: none; width: 382px; max-width: 100%; min-height: 380px; flex-direction: column; background: var(--cream-light); border-radius: var(--radius); padding: 30px 32px 36px; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.ch-item.is-active .ch-tab { display: none; }
.ch-item.is-active .ch-panel { display: flex; animation: ch-open .55s var(--ease) both; }
@keyframes ch-open { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.ch-panel h2 { font-size: 34px; font-weight: 400; letter-spacing: .03em; margin-bottom: 8px; }
.ch-panel p { font-size: 18px; line-height: 1.55; }
.ch-panel strong { font-weight: 600; }
.ch-panel hr { border: 0; border-top: 1px solid var(--teal); opacity: .6; margin: auto 0 0; padding-top: 0; width: 100%; }
.ch-panel hr:not(:last-child) { margin-bottom: 22px; }
.ch-panel > p:first-of-type { margin-bottom: 40px; }
.challenge-stat { font-weight: 600; }

/* ---------- Benefits ---------- */
.benefits { background: var(--cream-light); padding: clamp(80px, 9vw, 120px) 0 clamp(70px, 8vw, 100px); }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: clamp(40px, 5vw, 60px); }
.split-head p { font-size: 18px; line-height: 1.5; padding-top: 8px; max-width: 440px; }
.benefit-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; text-align: center; }
.benefit-icon { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--icon-bg); margin: 0 auto 24px; transition: transform .4s var(--ease); }
.benefit-list li:hover .benefit-icon { transform: translateY(-4px) rotate(-6deg); }
.benefit-icon img { width: 30px; height: 30px; object-fit: contain; }
.benefit-list h3 { font-size: 21px; line-height: 1.2; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--teal-ink); margin-bottom: 14px; }
.benefit-list p { font-size: 15px; line-height: 1.45; }

/* ---------- Statement ---------- */
.statement { position: relative; background-size: cover; background-position: center; min-height: clamp(380px, 47vw, 680px); display: grid; place-items: center; text-align: center; padding: 60px var(--gutter); }
.statement::before { content: ""; position: absolute; inset: 0; background: rgba(15, 28, 22, .25); }
.statement-title { position: relative; color: var(--white); font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 400; text-transform: uppercase; line-height: 1.05; letter-spacing: .03em; }

/* ---------- Tech ---------- */
.tech { background: var(--cream); padding: clamp(80px, 8vw, 110px) 0; }
.tech-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.tech-steps { margin-top: 34px; display: grid; gap: 44px; padding-left: clamp(0px, 2vw, 24px); }
.tech-steps li { display: grid; grid-template-columns: 100px 1fr; align-items: start; }
.step-num { font-size: clamp(3rem, 4.4vw, 4rem); line-height: .9; color: var(--teal); font-weight: 400; letter-spacing: .02em; }
.tech-steps p { font-size: 18px; line-height: 1.45; max-width: 400px; text-align: justify; }

.compare { position: relative; aspect-ratio: 524 / 384; border-radius: var(--radius); overflow: hidden; user-select: none; touch-action: pan-y; background: #f1efec; }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--teal-dark); transform: translateX(-1px); pointer-events: none; }
.compare-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border: 2px solid var(--teal-dark); border-radius: 4px; background: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--teal-dark); transition: transform .25s var(--ease); }
.compare:hover .compare-knob, .compare.is-dragging .compare-knob { transform: translate(-50%, -50%) scale(1.08); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare-label { position: absolute; top: 16px; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; background: rgba(27, 53, 57, .85); color: var(--white); pointer-events: none; transition: opacity .3s; }
.compare-label--l { left: 16px; }
.compare-label--r { right: 16px; }

/* ---------- Applications ---------- */
.apps { background: var(--teal); color: var(--white); padding: clamp(80px, 8vw, 100px) 0 clamp(60px, 6vw, 80px); }
.apps .h-display { color: var(--white); }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3.6vw, 52px); }
.app-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 382 / 392; background: #e9e5e0; }
.app-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.app-card:hover .app-media img { transform: scale(1.05); }
.app-card h3 { margin: 26px 0 4px; padding-left: 20px; font-size: 19px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.app-card p { padding-left: 20px; font-size: 19px; font-weight: 500; letter-spacing: .03em; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); padding: clamp(80px, 8vw, 100px) 0 clamp(70px, 7vw, 86px); }
.faq-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.faq-list { border-top: 1px solid var(--teal); }
.faq-list details { border-bottom: 1px solid var(--teal); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 500; letter-spacing: .03em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { position: relative; width: 14px; height: 14px; flex-shrink: 0; margin-right: 22px; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--teal-ink); transition: transform .35s var(--ease); }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 60px 24px 0; font-size: 17px; line-height: 1.6; }

/* ---------- Contact ---------- */
.contact { position: relative; background-color: #33666A; background-size: cover; background-position: center; background-blend-mode: multiply; color: var(--white); padding: clamp(60px, 6vw, 72px) 0 clamp(50px, 5vw, 60px); }
.contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 42, 45, .55), rgba(20, 42, 45, .25)); }
.contact-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-text .h-display { color: var(--white); margin-bottom: 18px; font-size: clamp(2rem, 3.6vw, 3.5rem); }
.contact-text p { font-size: 19px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form select, .contact-form textarea {
  width: 100%; border: 1px solid transparent; border-radius: 7px; background: var(--cream-light); color: var(--teal-dark);
  padding: 10px 14px; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form ::placeholder { color: var(--teal); opacity: .85; }
.contact-form :is(input, select, textarea):focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(200, 210, 208, .5); }
.contact-form .is-invalid { border-color: #E06464 !important; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 12px; height: 14px; transform: translateY(-50%); pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M6 1v11M1.5 7.5 6 12l4.5-4.5' fill='none' stroke='%231B3539' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.privacy-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.privacy-check input { width: 18px; height: 18px; accent-color: var(--cream-light); flex-shrink: 0; }
.privacy-check a { text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin-top: 14px; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: #BFE6D7; }
.form-status.err { color: #FFC2C2; }
.contact-form.is-sending button { opacity: .6; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); padding: clamp(70px, 7vw, 100px) 0 50px; color: var(--teal); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(20px, 4vw, 58px); align-items: center; margin-bottom: 44px; }
.footer-mark { width: 100%; max-width: 352px; height: auto; margin: 0 auto; transition: transform 1.2s var(--ease); }
.footer-top:hover .footer-mark { transform: rotate(-8deg); }
.footer-claim { aspect-ratio: 1 / 1; border: 1.5px solid var(--teal); border-radius: 18px; display: grid; place-items: center; text-align: center; padding: 20px; font-size: clamp(16px, 1.45vw, 20px); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--teal-ink); }
.footer-bar { border: 1.5px solid var(--teal); border-radius: 12px; padding: 18px 32px; display: flex; align-items: center; gap: 36px; font-size: 18px; }
.socials { display: flex; gap: 18px; align-items: center; }
.socials a { display: grid; place-items: center; color: var(--teal); transition: transform .25s var(--ease), color .25s; }
.socials a:hover { transform: translateY(-2px); color: var(--teal-dark); }
.footer-privacy { margin-left: auto; }
.footer-privacy:hover { text-decoration: underline; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .main-nav { gap: 28px; }
}

@media (max-width: 980px) {
  :root { --header-h: 80px; }
  .header-inner { gap: 16px; }
  .header-actions { gap: 18px; }
  .header-actions > .btn { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    background: var(--cream-light);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    padding: 100px var(--gutter) 60px;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .main-nav a { font-size: 30px; font-weight: 400; color: var(--teal); }
  .main-nav .nav-cta-mobile { display: inline-flex; font-size: 16px; font-weight: 500; color: var(--white); padding: 14px 30px; border-radius: 8px; margin-top: 18px; letter-spacing: .03em; }
  .main-nav .nav-cta-mobile::after { display: none; }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { background: var(--cream-light); }

  .split-head, .tech-inner, .faq-inner, .contact-inner { grid-template-columns: 1fr; }
  .split-head { gap: 16px; }
  .benefit-list { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .challenge-items { flex-wrap: wrap; max-width: 560px; margin: 0 auto; gap: 14px; }
  .ch-item { flex: 1 1 0; min-width: 0; }
  .ch-item.is-active { flex: 1 1 100%; order: -1; }
  .ch-tab { width: 100%; height: 160px; }
  .ch-panel { width: 100%; min-height: 300px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-mark { grid-column: 1 / -1; max-width: 220px; }
  .footer-bar { flex-wrap: wrap; justify-content: center; gap: 16px 28px; text-align: center; }
  .footer-privacy { margin-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 100svh; align-items: flex-start; }
  .hero-content { padding-top: calc(var(--header-h) + 36px); }
  .hero-video { object-position: 64% 75%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(240, 228, 218, .9) 0%, rgba(240, 228, 218, .55) 40%, rgba(240,228,218,0) 70%); }
  .hero-cards { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-cards .glass-card { font-size: 12px; padding: 6px; }
  .protect-pack { width: 92vw; height: auto; }
  .protect-intro br, .contact-text br, .split-head br { display: none; }
  .ch-panel { padding: 26px 24px 30px; min-height: 0; }
  .ch-panel h2 { font-size: 30px; }
  .ch-panel p { font-size: 16px; }
  .ch-panel > p:first-of-type { margin-bottom: 28px; }
  .ch-tab { height: 130px; font-size: 15px; }
  .benefit-list { grid-template-columns: 1fr 1fr; }
  .benefit-list li:last-child { grid-column: 1 / -1; }
  .benefit-list h3 { font-size: 17px; }
  .tech-steps li { grid-template-columns: 70px 1fr; }
  .tech-steps p { text-align: left; }
  .app-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .faq-list summary { font-size: 17px; }
  .faq-list summary i { margin-right: 4px; }
  .faq-a p { padding-right: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { margin-left: auto; }
  .footer-claim { font-size: 13px; padding: 12px; }
  .footer-bar { font-size: 15px; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 120s !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* =========================================================
   HERO VIDEO
   ========================================================= */
.hero { background: #EDE3D9; }
.hero-media { overflow: hidden; }
.hero-media::after { content: none; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: translateX(13%);
  scale: calc(1 + var(--h, 0) * .08);
  transform-origin: 70% 60%;
}
/* Velo per la leggibilità: crema pieno a sinistra, sfuma verso il prodotto */
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #EDE3D9 0%, #EDE3D9 15%, rgba(237, 227, 217, .85) 30%, rgba(237, 227, 217, .45) 47%, rgba(237, 227, 217, 0) 62%),
    linear-gradient(180deg, rgba(237, 227, 217, .55) 0%, rgba(237, 227, 217, 0) 22%);
}
.hero-content { translate: 0 calc(var(--h, 0) * -70px); opacity: calc(1 - var(--h, 0) * 1.1); }
.hero-title { text-shadow: 0 0 40px rgba(237, 227, 217, .9); }
.hero-cards .glass-card--light { background: rgba(237, 227, 217, .55); border-color: rgba(255, 255, 255, .5); }
.hero-cards .glass-card--light:hover { background: rgba(237, 227, 217, .78); }

@media (max-width: 640px), (max-width: 1024px) and (orientation: portrait) {
  .hero { background: #EDE3D9; min-height: 100svh; align-items: flex-start; }
  .hero-media { inset: auto 0 0 0; aspect-ratio: 5 / 4; }
  .hero-video { transform: none; transform-origin: 50% 70%; }
  .hero-scrim { background: linear-gradient(180deg, #EDE3D9 0%, rgba(237, 227, 217, .7) 14%, rgba(237, 227, 217, 0) 38%); }
  .hero-content { padding-top: calc(var(--header-h) + 36px); }
  .hero-title { text-shadow: none; }
}

/* =========================================================
   ANIMAZIONI
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(36px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise-t { from { opacity: 0; translate: 0 36px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; scale: .3; rotate: -40deg; } 70% { opacity: 1; scale: 1.1; } 100% { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes float { 0%, 100% { rotate: -1.6deg; } 50% { rotate: 1.6deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Barra di avanzamento */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--teal); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); pointer-events: none; }

/* Ingresso hero */
.site-header { animation: fade-in .9s var(--ease) .1s both; }
.header-inner > .logo, .header-inner > .header-actions { animation: fade-down .9s var(--ease) .1s both; }
@media (min-width: 981px) { .header-inner > .main-nav { animation: fade-down .9s var(--ease) .1s both; } }
/* il menu mobile è fixed: nessun antenato deve avere transform/filtri mentre è aperto */
.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
.hero-title > * { display: block; animation: rise 1.1s var(--ease) both; }
.hero-title > *:nth-child(1) { animation-delay: .25s; }
.hero-title > *:nth-child(2) { animation-delay: .45s; }
.hero-cards > * { animation: film-unroll 1.5s cubic-bezier(.65, 0, .25, 1) backwards; }
.hero-cards > *:nth-child(1), .hero-cards > *:nth-child(1) .pcard-roll { animation-delay: .7s; }
.hero-cards > *:nth-child(2), .hero-cards > *:nth-child(2) .pcard-roll { animation-delay: .95s; }
.hero-cards > *:nth-child(3), .hero-cards > *:nth-child(3) .pcard-roll { animation-delay: 1.2s; }

/* Titoli di sezione: apertura a maschera */
.reveal .h-display, .h-section.reveal { clip-path: inset(0 0 100% 0); translate: 0 40px; transition: clip-path 1.2s var(--ease), translate 1.2s var(--ease); }
.reveal.is-visible .h-display, .h-section.reveal.is-visible { clip-path: inset(-10% -5% -20% -5%); translate: 0 0; }

/* Vaschetta che fluttua + parallax; frasi che scorrono anche con lo scroll */
.protect-pack { translate: 0 calc(var(--p, 0) * -60px); animation: float 7s ease-in-out infinite; }
.marquee-row--left .marquee-track { translate: calc(var(--p, 0) * 180px) 0; }
.marquee-row--right .marquee-track { translate: calc(var(--p, 0) * -180px) 0; }
.protect-cta .btn { animation: bob 3.2s ease-in-out infinite; }

/* La sfida: parallax sfondo + contenuto del pannello in sequenza */
.challenge-layer { inset: -50px 0; translate: 0 calc(var(--p, 0) * 40px); }
.ch-item.is-active .ch-panel > * { animation: rise .7s var(--ease) both; }
.ch-item.is-active .ch-panel > *:nth-child(1) { animation-delay: .12s; }
.ch-item.is-active .ch-panel > *:nth-child(2) { animation-delay: .22s; }
.ch-item.is-active .ch-panel > *:nth-child(3) { animation-delay: .32s; }
.ch-item.is-active .ch-panel > *:nth-child(4) { animation-delay: .42s; }

/* Benefici: icone che "saltano" fuori */
.benefit-list li .benefit-icon { opacity: 0; }
.benefit-list li.is-visible .benefit-icon { animation: pop .9s cubic-bezier(.34, 1.56, .64, 1) both; }
.benefit-list li:nth-child(1).is-visible .benefit-icon { animation-delay: .15s; }
.benefit-list li:nth-child(2).is-visible .benefit-icon { animation-delay: .25s; }
.benefit-list li:nth-child(3).is-visible .benefit-icon { animation-delay: .35s; }
.benefit-list li:nth-child(4).is-visible .benefit-icon { animation-delay: .45s; }
.benefit-list li:nth-child(5).is-visible .benefit-icon { animation-delay: .55s; }

/* Statement: sfondo in parallax, titolo che si "allarga" */
.statement { overflow: hidden; background: #2b3a2d; }
.statement-bg { position: absolute; inset: -14% 0; background-size: cover; background-position: center; z-index: 0; translate: 0 calc(var(--p, 0) * 10%); scale: 1.06; }
.statement::before { z-index: 1; }
.statement-title { z-index: 2; letter-spacing: .25em; opacity: 0; transition: letter-spacing 1.6s var(--ease), opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.statement-title.is-visible { letter-spacing: .03em; opacity: 1; }

/* Tecnologia: passi in sequenza */
.tech-steps li { opacity: 0; }
.tech-text.is-visible .tech-steps li { animation: rise .9s var(--ease) both; }
.tech-text.is-visible .tech-steps li:nth-child(1) { animation-delay: .35s; }
.tech-text.is-visible .tech-steps li:nth-child(2) { animation-delay: .55s; }

/* Applicazioni: immagini che si svelano dal basso */
.app-card .app-media { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.3s var(--ease); }
.app-card .app-media img { scale: 1.25; transition: scale 1.6s var(--ease), transform 1s var(--ease); }
.app-card.is-visible .app-media { clip-path: inset(0 0 0 0 round var(--radius)); }
.app-card.is-visible .app-media img { scale: 1; }
.app-card { transition: opacity .9s var(--ease), transform .9s var(--ease), translate .5s var(--ease); }
.app-card:hover { translate: 0 -8px; }

/* FAQ: apertura fluida */
.faq-list summary { transition: color .25s; }
.faq-list summary:hover { color: var(--teal); }

/* Footer: pittogramma che ruota con lo scroll */
.footer-mark { rotate: calc(var(--p, 0) * -35deg); }

/* Pulsanti: riflesso al passaggio */
.btn-dark { position: relative; overflow: hidden; isolation: isolate; }
.btn-dark::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.btn-dark:hover::before { left: 120%; }

@media (prefers-reduced-motion: reduce) {
  .site-header, .header-inner > *, .hero-title > *, .hero-cards > *, .pcard-roll, .ch-item.is-active .ch-panel > *, .tech-steps li,
  .benefit-list li .benefit-icon, .protect-pack, .protect-cta .btn { animation: none !important; opacity: 1 !important; }
  .reveal .h-display, .h-section.reveal { clip-path: none; translate: none; }
  .app-card .app-media { clip-path: none; }
  .app-card .app-media img { scale: 1; }
  .statement-title { opacity: 1; letter-spacing: .03em; }
  .scroll-progress { display: none; }
}

/* =========================================================
   EFFETTO PELLICOLA (riflesso che attraversa l'elemento)
   ========================================================= */
@keyframes film-sweep { from { left: -75%; } to { left: 125%; } }
.film { position: relative; overflow: hidden; isolation: isolate; --film: rgba(255, 255, 255, .38); }
.film--light { --film: rgba(255, 255, 255, .85); }
.film::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -75%; width: 50%; z-index: 3; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, var(--film) 50%, transparent 100%);
  transform: skewX(-20deg); transition: left .9s var(--ease);
}
.film:hover::after, .film:focus-visible::after, .app-card:hover .film::after, .benefit-list li:hover .film::after { left: 125%; }
/* passaggio automatico quando l'elemento entra in scena */
.hero-cards .film::after { animation: film-sweep 1.3s var(--ease) 2.3s; }
.hero-cards .film:nth-child(2)::after { animation-delay: 2.55s; }
.hero-cards .film:nth-child(3)::after { animation-delay: 2.8s; }
.app-card.is-visible .film::after { animation: film-sweep 1.4s var(--ease) .9s; }
.footer-claim.is-visible::after, .footer-claim.film.is-visible::after { animation: film-sweep 1.4s var(--ease) .5s; }
.benefit-list li.is-visible .film::after { animation: film-sweep 1.1s var(--ease) .9s; }
.ch-item.is-active .ch-panel.film::after { animation: film-sweep 1.2s var(--ease) .25s; }
.compare-knob.film { position: absolute; }
@media (prefers-reduced-motion: reduce) { .film::after { display: none; } }

/* FAQ: intestazione con titolo e sottotitolo */
.faq-head { max-width: 460px; }
.faq-head .h-display { margin-bottom: 22px; }
.faq-head p { font-size: 18px; line-height: 1.55; margin-bottom: 30px; }
@media (min-width: 981px) { .faq-head { position: sticky; top: 120px; } }
@media (max-width: 980px) { .faq-inner { gap: 36px; } .faq-head p { margin-bottom: 24px; } }

/* Contatti: gocce animate sul vetro */
.contact { overflow: hidden; }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }

/* =========================================================
   CARD "PELLICOLA" – film trasparente con riflessi iridescenti,
   pieghe, angolo che si solleva e luce che segue il cursore
   ========================================================= */
@property --peel { syntax: '<length>'; inherits: true; initial-value: 22px; }
.pcard {
  --mx: 30%; --my: 20%; --rx: 0deg; --ry: 0deg; --lift: 0px; --peel: 22px;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 18px 18px 16px; border: 0; border-radius: 16px; cursor: pointer; text-align: left;
  font: inherit; letter-spacing: .04em; text-decoration: none;
  backdrop-filter: blur(16px) saturate(1.35); -webkit-backdrop-filter: blur(16px) saturate(1.35);
  clip-path: polygon(0 0, calc(100% - var(--peel)) 0, 100% var(--peel), 100% 100%, 0 100%);
  transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transition: transform .6s var(--ease), --peel .6s var(--ease), box-shadow .6s var(--ease), background-color .6s var(--ease);
  will-change: transform;
}
/* strato iridescente + pieghe della pellicola */
.pcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 42%),
    linear-gradient(118deg, transparent 18%, rgba(255, 255, 255, .32) 27%, transparent 36%, transparent 58%, rgba(255, 255, 255, .2) 64%, transparent 72%),
    linear-gradient(calc(120deg + var(--ry) * 4), rgba(255, 175, 205, .28) 0%, rgba(175, 215, 255, .3) 30%, rgba(185, 255, 225, .26) 55%, rgba(255, 238, 175, .26) 80%, rgba(255, 175, 205, .2) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .035' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 100% 100%, 220% 220%, 240px 240px;
  background-position: 0 0, 0 0, var(--mx) var(--my), 0 0;
  mix-blend-mode: normal; opacity: .9; transition: opacity .6s var(--ease);
}
/* angolo sollevato */
.pcard-peel {
  position: absolute; top: 0; right: 0; width: var(--peel); height: var(--peel); pointer-events: none; z-index: 4;
  background: linear-gradient(225deg, transparent 50%, rgba(255, 255, 255, .95) 50%, rgba(226, 222, 218, .9) 72%, rgba(255, 255, 255, .98) 100%);
  border-bottom-left-radius: 6px;
  filter: drop-shadow(-3px 4px 4px rgba(0, 0, 0, .18));
}
.pcard-num { font-size: 12px; font-weight: 500; letter-spacing: .18em; opacity: .65; font-variant-numeric: tabular-nums; }
.pcard-label { display: block; text-transform: uppercase; line-height: 1.15; padding-right: 40px; }
.pcard-arrow {
  position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid currentColor; opacity: .75;
  transition: transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease), opacity .4s;
}
.pcard:hover, .pcard:focus-visible { --peel: 44px; --lift: -6px; }
.pcard:hover .pcard-arrow, .pcard:focus-visible .pcard-arrow { opacity: 1; transform: rotate(45deg) scale(1.05); }
.pcard:hover::before { opacity: 1; }

.pcard--light {
  color: var(--teal); font-size: clamp(14px, 1.15vw, 17px); font-weight: 500;
  background-color: rgba(245, 238, 231, .3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 40px -22px rgba(70, 50, 30, .45);
}
.pcard--light:hover { background-color: rgba(245, 238, 231, .5); }
.pcard--light:hover .pcard-arrow { background: var(--teal); color: var(--white); border-color: var(--teal); }

.pcard--dark {
  color: var(--white); font-size: clamp(17px, 1.5vw, 21px); font-weight: 500;
  background-color: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .7), 0 24px 50px -24px rgba(0, 0, 0, .55);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .3);
}
.pcard--dark::before { opacity: .75; }
.pcard--dark:hover { background-color: rgba(255, 255, 255, .2); }
.pcard--dark:hover .pcard-arrow { background: var(--white); color: var(--teal-dark); text-shadow: none; }
.pcard--dark .pcard-peel { background: linear-gradient(225deg, transparent 50%, rgba(255, 255, 255, .85) 50%, rgba(200, 210, 208, .75) 72%, rgba(255, 255, 255, .9) 100%); }

.hero-cards .pcard { aspect-ratio: 1 / 1; }
.pcard.film::after { z-index: 3; }

@media (max-width: 640px) {
  .pcard { padding: 12px 11px 11px; border-radius: 12px; --peel: 16px; }
  .pcard:hover, .pcard:focus-visible { --peel: 26px; }
  .pcard--light { font-size: 11.5px; }
  .pcard-num { font-size: 10px; }
  .pcard-label { padding-right: 0; }
  .hero-cards .pcard-arrow { display: none; }
  .ch-tab .pcard-arrow { width: 28px; height: 28px; right: 10px; bottom: 10px; }
  .ch-tab .pcard-label { padding-right: 30px; }
}
@media (prefers-reduced-motion: reduce) { .pcard { transition: none; transform: none; } }
.hero-cards .pcard-label { white-space: nowrap; padding-right: 0; }
.pcard--light { font-size: clamp(13px, 1.05vw, 16px); }
.ch-tab:hover .pcard-arrow, .ch-tab:focus-visible .pcard-arrow { transform: rotate(90deg) scale(1.08); }
@media (max-width: 640px) { .pcard--light { font-size: 11px; letter-spacing: .02em; } }

/* =========================================================
   LA SFIDA – accordion di pellicole espandibili
   ========================================================= */
.challenge { padding: clamp(40px, 5vw, 70px) 0; align-items: stretch; min-height: 0; }
.challenge-inner { display: flex; }
.film-acc { display: flex; gap: 16px; width: 100%; height: clamp(520px, 66vh, 680px); }
.fa-item {
  --peel: 26px; --tint: rgba(255, 255, 255, .1);
  position: relative; isolation: isolate; overflow: hidden; color: var(--white);
  flex: 1 1 0; min-width: 0; border-radius: 20px;
  background-color: var(--tint);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .7);
  clip-path: polygon(0 0, calc(100% - var(--peel)) 0, 100% var(--peel), 100% 100%, 0 100%);
  transition: flex-grow .9s var(--ease), --peel .6s var(--ease), background-color .9s var(--ease), backdrop-filter .9s var(--ease), -webkit-backdrop-filter .9s var(--ease);
}
.fa-item.is-active { flex-grow: 2.4; --tint: rgba(255, 255, 255, 0); backdrop-filter: blur(0) saturate(1); -webkit-backdrop-filter: blur(0) saturate(1); }
.fa-item:not(.is-active):hover { flex-grow: 1.15; --peel: 46px; --tint: rgba(255, 255, 255, .18); }
/* riflessi iridescenti e pieghe della pellicola */
.fa-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(118deg, transparent 15%, rgba(255, 255, 255, .26) 24%, transparent 33%, transparent 60%, rgba(255, 255, 255, .16) 67%, transparent 75%),
    linear-gradient(125deg, rgba(255, 175, 205, .22) 0%, rgba(175, 215, 255, .24) 30%, rgba(185, 255, 225, .2) 55%, rgba(255, 238, 175, .2) 80%, rgba(255, 175, 205, .16) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .03' numOctaves='3' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 220% 220%, 300px 300px;
  opacity: .85; transition: opacity .9s var(--ease);
}
/* velo per la leggibilità quando la pellicola è aperta */
.fa-item::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background:
    linear-gradient(165deg, rgba(10, 28, 28, .72) 0%, rgba(10, 28, 28, .35) 38%, rgba(10, 28, 28, 0) 62%),
    linear-gradient(0deg, rgba(10, 28, 28, .6) 0%, rgba(10, 28, 28, 0) 34%);
  transition: opacity .9s var(--ease);
}
.fa-item.is-active::before { opacity: .35; }
.fa-item.is-active::after { opacity: 1; }
.fa-peel {
  position: absolute; top: 0; right: 0; width: var(--peel); height: var(--peel); z-index: 4; pointer-events: none;
  background: linear-gradient(225deg, transparent 50%, rgba(255, 255, 255, .9) 50%, rgba(205, 214, 212, .8) 72%, rgba(255, 255, 255, .95) 100%);
  border-bottom-left-radius: 7px; filter: drop-shadow(-3px 4px 5px rgba(0, 0, 0, .25));
}
/* intestazione: tutta la pellicola è cliccabile */
.fa-head {
  position: absolute; inset: 0; z-index: 2; width: 100%; padding: 24px 22px; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.fa-item.is-active .fa-head { cursor: default; pointer-events: none; }
.fa-num { position: absolute; top: 24px; left: 24px; font-size: 13px; font-weight: 500; letter-spacing: .2em; opacity: .8; transition: opacity .5s; }
.fa-vtitle {
  position: absolute; left: 22px; bottom: 26px; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: clamp(20px, 1.9vw, 28px); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .35);
  transition: opacity .45s var(--ease) .35s, translate .6s var(--ease) .35s;
}
.fa-icon {
  position: absolute; right: 20px; bottom: 22px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .8);
  transition: transform .5s var(--ease), background .4s, color .4s, opacity .4s;
}
.fa-item:not(.is-active):hover .fa-icon { transform: rotate(90deg) scale(1.08); background: var(--white); color: var(--teal-dark); }
.fa-item.is-active .fa-vtitle { opacity: 0; translate: 0 20px; transition-delay: 0s; }
.fa-item.is-active .fa-icon { opacity: 0; transform: scale(.6); }
.fa-item.is-active .fa-num { opacity: .9; }
/* contenuto dell'aperta */
.fa-body {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column;
  padding: clamp(56px, 6vw, 76px) clamp(26px, 3.4vw, 48px) clamp(28px, 3vw, 42px);
  visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s;
  min-width: 380px; max-width: 560px;
}
.fa-item.is-active .fa-body { visibility: visible; opacity: 1; transition: opacity .1s .35s, visibility 0s .35s; }
.fa-body h2 { font-size: clamp(34px, 3.4vw, 50px); font-weight: 400; letter-spacing: .03em; line-height: 1.05; margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.fa-body p { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; max-width: 440px; text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }
.fa-body strong { font-weight: 600; }
.fa-stat { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .6); font-weight: 600; }
.fa-item.is-active .fa-body > * { animation: rise .8s var(--ease) both; }
.fa-item.is-active .fa-body > *:nth-child(1) { animation-delay: .45s; }
.fa-item.is-active .fa-body > *:nth-child(2) { animation-delay: .58s; }
.fa-item.is-active .fa-body > *:nth-child(3) { animation-delay: .72s; }

/* cambio sfondo: la nuova immagine entra come una pellicola tirata da un lato all'altro */
.challenge-layer { z-index: 0; }
.challenge-layer.is-active { z-index: 1; }
.challenge-layer.is-entering { z-index: 2; opacity: 1; transform: none; transition: none; animation: film-wipe 1.15s cubic-bezier(.7, 0, .2, 1) both; }
.challenge-layer.is-entering.from-right { animation-name: film-wipe-r; }
@keyframes film-wipe { from { clip-path: inset(0 100% 0 0); scale: 1.08; } to { clip-path: inset(0 0 0 0); scale: 1; } }
@keyframes film-wipe-r { from { clip-path: inset(0 0 0 100%); scale: 1.08; } to { clip-path: inset(0 0 0 0); scale: 1; } }
.challenge-sheen {
  position: absolute; top: -10%; bottom: -10%; left: -40%; width: 26%; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55) 45%, rgba(220, 240, 255, .35) 55%, rgba(255, 255, 255, 0));
  transform: skewX(-12deg); mix-blend-mode: screen;
}
.challenge-sheen.run { animation: sheen-run 1.15s cubic-bezier(.7, 0, .2, 1) both; }
.challenge-sheen.run.from-right { animation-name: sheen-run-r; }
@keyframes sheen-run { 0% { left: -30%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 110%; opacity: 0; } }
@keyframes sheen-run-r { 0% { left: 110%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: -30%; opacity: 0; } }

@media (max-width: 980px) {
  .film-acc { flex-direction: column; height: auto; gap: 12px; }
  .fa-item { flex: none; height: 84px; transition: height .8s var(--ease), --peel .6s var(--ease), background-color .9s var(--ease); }
  .fa-item.is-active { height: 430px; }
  .fa-item:not(.is-active):hover { --peel: 34px; }
  .fa-vtitle { writing-mode: horizontal-tb; transform: none; left: 66px; bottom: auto; top: 50%; translate: 0 -50%; font-size: 20px; }
  .fa-item.is-active .fa-vtitle { translate: 0 -30%; }
  .fa-num { top: 50%; translate: 0 -50%; }
  .fa-item.is-active .fa-num { top: 24px; translate: 0 0; }
  .fa-icon { top: 50%; bottom: auto; translate: 0 -50%; width: 36px; height: 36px; }
  .fa-body { min-width: 0; max-width: none; padding: 60px 24px 26px; }
}
@media (max-width: 640px) {
  .fa-item.is-active { height: 470px; }
  .fa-body h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .challenge-layer.is-entering { animation: none; }
  .challenge-sheen { display: none; }
  .fa-item.is-active .fa-body > * { animation: none; }
}

/* La sfida: leggibilità del testo nella pellicola aperta */
.fa-item::after {
  background:
    linear-gradient(165deg, rgba(8, 24, 24, .8) 0%, rgba(8, 24, 24, .45) 40%, rgba(8, 24, 24, .1) 70%),
    linear-gradient(0deg, rgba(8, 24, 24, .78) 0%, rgba(8, 24, 24, 0) 38%);
}
.fa-copy {
  align-self: flex-start; max-width: 480px;
  padding: clamp(20px, 2vw, 28px) clamp(22px, 2.2vw, 30px);
  margin: clamp(-8px, -.6vw, -4px) 0 0 clamp(-14px, -1vw, -8px);
  border-radius: 16px;
  background: rgba(8, 26, 26, .42);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 20px 40px -24px rgba(0, 0, 0, .5);
}
.fa-copy h2 { margin-bottom: 14px; text-shadow: none; }
.fa-copy p { font-size: clamp(16px, 1.3vw, 19px); font-weight: 400; color: rgba(255, 255, 255, .96); text-shadow: none; }
.fa-stat {
  align-self: flex-start; max-width: 480px; margin-left: clamp(-14px, -1vw, -8px);
  padding: 18px clamp(22px, 2.2vw, 30px); border-top: 0; border-radius: 14px;
  background: rgba(8, 26, 26, .42);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  text-shadow: none; font-size: clamp(16px, 1.3vw, 19px) !important;
}
.fa-item.is-active .fa-body > *:nth-child(2) { animation-delay: .62s; }
@media (max-width: 980px) {
  .fa-copy, .fa-stat { margin-left: -8px; max-width: none; align-self: stretch; }
  .fa-body { padding: 56px 20px 20px; }
}

/* Pellicole della hero: cadono dall'alto ondeggiando e si posano */
@keyframes film-land {
  0%   { opacity: 0; --peel: 54px; transform: perspective(800px) translate3d(-70px, -300px, 0) rotateZ(-22deg) rotateX(62deg) rotateY(-30deg); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  10%  { opacity: 1; }
  22%  { --peel: 40px; transform: perspective(800px) translate3d(46px, -205px, 0) rotateZ(14deg) rotateX(-38deg) rotateY(24deg); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  42%  { --peel: 46px; transform: perspective(800px) translate3d(-34px, -120px, 0) rotateZ(-10deg) rotateX(30deg) rotateY(-16deg); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  60%  { --peel: 34px; transform: perspective(800px) translate3d(20px, -56px, 0) rotateZ(6deg) rotateX(-18deg) rotateY(10deg); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  76%  { --peel: 30px; transform: perspective(800px) translate3d(-8px, -16px, 0) rotateZ(-2.5deg) rotateX(9deg) rotateY(-4deg); animation-timing-function: cubic-bezier(.3, 0, .5, 1); }
  88%  { --peel: 20px; transform: perspective(800px) translate3d(2px, 3px, 0) rotateZ(.6deg) rotateX(-3deg) rotateY(1deg); animation-timing-function: cubic-bezier(.3, 0, .3, 1); }
  100% { opacity: 1; --peel: 22px; transform: perspective(800px) translate3d(0, 0, 0) rotateZ(0deg) rotateX(0deg) rotateY(0deg); }
}
.hero-cards .pcard:hover .pcard-arrow, .hero-cards .pcard:focus-visible .pcard-arrow { transform: translateY(3px) scale(1.05); }
@media (max-width: 640px) {
  .hero-cards .pcard-label { white-space: normal; }
}
.hero-cards .pcard-label { white-space: normal; padding-right: 44px; }
@media (max-width: 640px) { .hero-cards .pcard-label { padding-right: 0; } }

/* Pellicole della hero: si srotolano in diagonale, dall'angolo in basso a sinistra a quello in alto a destra */
@property --u { syntax: '<number>'; inherits: true; initial-value: 1; }
.pcard {
  /* --u va da 0 a 1: la linea di srotolamento percorre la diagonale (s = 2u) */
  clip-path: polygon(
    0 100%,
    0 calc(max(0, 1 - 2 * var(--u)) * 100%),
    calc(max(0, 2 * var(--u) - 1) * 100% - var(--peel)) calc(max(0, 1 - 2 * var(--u)) * 100%),
    calc(min(1, 2 * var(--u)) * 100%) calc(min(1, 2 - 2 * var(--u)) * 100% + var(--peel)),
    calc(min(1, 2 * var(--u)) * 100%) 100%);
}
@keyframes film-unroll {
  0%   { --u: 0; --peel: 0px; opacity: 0; transform: perspective(800px) translate3d(0, 4px, 0) rotateZ(0deg) rotateX(10deg) rotateY(-10deg); }
  5%   { opacity: 1; }
  84%  { --peel: 0px; }
  100% { --u: 1; --peel: 22px; opacity: 1; transform: perspective(800px) translate3d(0, 0, 0) rotateZ(0deg) rotateX(0deg) rotateY(0deg); }
}
/* il rotolo: attraversa la card in diagonale dal basso a sinistra all'alto a destra */
.pcard-roll {
  position: absolute; z-index: 5; pointer-events: none; opacity: 0;
  left: calc(var(--u) * 100%); top: calc((1 - var(--u)) * 100%); right: auto; bottom: auto;
  width: 160%; height: calc(4px + (1 - var(--u)) * 20px);
  transform: translate(-50%, -50%) rotate(45deg) translateY(45%); rotate: none;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, .98) 30%, rgba(236, 232, 228, .95) 52%, rgba(196, 190, 184, .85) 78%, rgba(255, 255, 255, .55) 100%);
  box-shadow: 0 6px 14px -4px rgba(60, 45, 30, .35), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.hero-cards > * { animation: film-unroll 1.8s cubic-bezier(.55, 0, .25, 1) backwards; }
.hero-cards .pcard-roll { animation: roll-fade 1.8s linear backwards; }
@keyframes roll-fade { 0% { opacity: 1; } 86% { opacity: 1; } 100% { opacity: 0; } }
.hero-cards > *:nth-child(1), .hero-cards > *:nth-child(1) .pcard-roll { animation-delay: .7s; }
.hero-cards > *:nth-child(2), .hero-cards > *:nth-child(2) .pcard-roll { animation-delay: .95s; }
.hero-cards > *:nth-child(3), .hero-cards > *:nth-child(3) .pcard-roll { animation-delay: 1.2s; }
@media (prefers-reduced-motion: reduce) { .hero-cards > *, .hero-cards .pcard-roll { animation: none !important; } }

/* =========================================================
   MENU – voci numerate con bordo sotto
   ========================================================= */
.main-nav { gap: clamp(14px, 1.8vw, 28px); align-items: flex-end; }
.main-nav .nav-link {
  position: relative; display: grid; gap: 3px; padding: 0 2px 9px; min-width: clamp(92px, 9vw, 128px);
  border-bottom: 1px solid rgba(38, 92, 97, .28); font-size: 14px; font-weight: 500; letter-spacing: .03em;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.main-nav .nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; width: auto;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.main-nav .nav-link:hover::after, .main-nav .nav-link.is-current::after { transform: scaleX(1); }
.nav-num { font-size: 10.5px; font-weight: 500; letter-spacing: .14em; color: var(--teal); opacity: .55; font-variant-numeric: tabular-nums; transition: opacity .3s, transform .4s var(--ease); }
.nav-label { white-space: nowrap; transition: transform .4s var(--ease); }
.main-nav .nav-link:hover .nav-num, .main-nav .nav-link.is-current .nav-num { opacity: 1; transform: translateX(3px); }
.main-nav .nav-link:hover .nav-label { transform: translateX(3px); }
.is-scrolled .main-nav .nav-link { padding-bottom: 7px; }

@media (max-width: 1180px) and (min-width: 981px) {
  .main-nav .nav-link { min-width: 0; font-size: 13.5px; }
}

@media (max-width: 980px) {
  .main-nav { align-items: stretch; justify-content: flex-start; gap: 0; padding-top: 120px; overflow-y: auto; }
  .main-nav .nav-link {
    grid-template-columns: 54px 1fr; align-items: baseline; gap: 0; min-width: 0;
    padding: 20px 0 18px; border-bottom: 1px solid rgba(38, 92, 97, .22);
    font-size: clamp(28px, 8vw, 40px); font-weight: 400; color: var(--teal); letter-spacing: .02em;
    opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease);
  }
  .main-nav .nav-link:first-child { border-top: 1px solid rgba(38, 92, 97, .22); }
  .main-nav .nav-link::after { height: 2px; }
  .nav-num { font-size: 13px; }
  .main-nav .nav-cta-mobile { align-self: flex-start; margin-top: 34px; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease), background .25s; }
  .menu-open .main-nav .nav-link, .menu-open .main-nav .nav-cta-mobile { opacity: 1; transform: none; }
  .menu-open .main-nav .nav-link:nth-child(1) { transition-delay: .08s; }
  .menu-open .main-nav .nav-link:nth-child(2) { transition-delay: .14s; }
  .menu-open .main-nav .nav-link:nth-child(3) { transition-delay: .2s; }
  .menu-open .main-nav .nav-link:nth-child(4) { transition-delay: .26s; }
  .menu-open .main-nav .nav-cta-mobile { transition-delay: .34s; }
}

/* Menu mobile: stile originale (voci grandi senza numeri né righe) */
@media (max-width: 980px) {
  .main-nav { justify-content: center; gap: 26px; padding-top: 100px; }
  .main-nav .nav-link, .main-nav .nav-link:first-child {
    display: block; padding: 4px 0; border: 0; min-width: 0;
    font-size: 30px; font-weight: 400; letter-spacing: .02em;
    opacity: 1; transform: none; transition: none;
  }
  .main-nav .nav-num { display: none; }
  .main-nav .nav-link::after { display: none; }
  .main-nav .nav-link:hover .nav-label { transform: none; }
  .main-nav .nav-cta-mobile { margin-top: 12px; opacity: 1; transform: none; transition: background .25s; }
}

/* Prima/dopo: test su mela */
.compare-wrap { margin: 0; }
.compare { aspect-ratio: 4 / 3; background: #fff; }
.compare-note { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 15px; color: var(--teal-ink); }
.compare-note svg { flex-shrink: 0; color: var(--teal); }
.compare-note strong { font-weight: 600; color: var(--teal); }

.compare-label { transition: opacity .3s var(--ease), translate .3s var(--ease); }
.compare-label.is-hidden { opacity: 0; translate: 0 -6px; }

/* Spin-off Università di Bologna */
.spinoff {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 40px;
  margin-top: clamp(50px, 6vw, 80px); padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid rgba(38, 92, 97, .25);
}
.spinoff-mark { grid-row: span 2; height: 72px; width: auto; }
.spinoff-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.spinoff-text { grid-column: 1 / -1; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; max-width: 820px; }
.spinoff:has(.spinoff-mark) .spinoff-text { grid-column: 2; }
.spinoff-text strong { font-weight: 600; color: var(--teal); }
@media (max-width: 640px) { .spinoff { grid-template-columns: 1fr; } .spinoff:has(.spinoff-mark) .spinoff-text { grid-column: 1; } }

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader { display: none; }
.is-loading body { overflow: hidden; }
.is-loading .preloader, .preloader.is-leaving {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100;
  background: var(--cream-light);
}
.preloader.is-leaving { pointer-events: none; animation: preloader-out .9s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes preloader-out { to { clip-path: inset(0 0 100% 0); } }
.preloader-inner { display: grid; justify-items: center; gap: 22px; width: min(240px, 60vw); }
.preloader-mark { position: relative; width: 90px; height: 90px; overflow: hidden; border-radius: 50%; }
.preloader-mark img { width: 100%; height: 100%; animation: preloader-spin 2.4s cubic-bezier(.6, 0, .4, 1) infinite; }
/* riflesso "pellicola" che attraversa il pittogramma */
.preloader-mark::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent); transform: skewX(-20deg);
  animation: film-sweep 1.6s var(--ease) infinite;
}
@keyframes preloader-spin { 0% { rotate: 0deg; } 50% { rotate: 180deg; } 100% { rotate: 360deg; } }
.preloader-bar { width: 100%; height: 2px; background: rgba(38, 92, 97, .15); border-radius: 2px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 100%; background: var(--teal); transform-origin: 0 50%; transform: scaleX(var(--load, 0)); transition: transform .35s var(--ease); }
.preloader-pct { font-size: 13px; font-weight: 500; letter-spacing: .18em; color: var(--teal); font-variant-numeric: tabular-nums; }
.preloader.is-leaving .preloader-inner { animation: preloader-inner-out .5s var(--ease) forwards; }
@keyframes preloader-inner-out { to { opacity: 0; transform: translateY(-20px); } }

/* le animazioni di ingresso partono solo quando il preloader se ne va */
.is-loading .site-header, .is-loading .header-inner > *, .is-loading .hero-title > *,
.is-loading .hero-cards > *, .is-loading .hero-cards .pcard-roll, .is-loading .hero-cards .film::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .preloader-mark img, .preloader-mark::after { animation: none; }
  .preloader.is-leaving { animation: none; opacity: 0; }
}

/* sicurezza: se per qualsiasi motivo lo script non chiude il preloader, sparisce comunque dopo 15 secondi */
.is-loading .preloader { animation: preloader-failsafe .6s ease 15s forwards; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
