/* ==============================
   STYLES – bundle unico (CSS)
   Contiene gli stili delle Sezioni 1–5
   ============================== */

/* Reset + variabili (da Sezione 1) */
:root {
  --alc-navy: #1e3a8a;
  --alc-blue: #2563eb;
  --alc-white: #ffffff;
  --alc-dark: #0f172a;

  --container: 100%;
  --pad-left: clamp(14px, 3.2vw, 42px);
  --pad-right: clamp(6px, 1.2vw, 14px);
  --gap-x: clamp(16px, 2.2vw, 30px);
  --menu-end-gap: var(--gap-x);
  --underline-h: 2px;
  --underline-dur: .28s;

  --glass-bg: rgba(16, 20, 28, 0.42);
  --glass-border-color: rgba(255, 255, 255, .16);
  --glass-blur: 12px;
  --glass-shadow: 0 12px 28px rgba(0, 0, 0, .38);
  --glass-radius: 10px;

  --drawer-w: min(66.666vw, 420px);

  --drawer-bg: #f3f4f6;
  --drawer-head-bg: var(--alc-dark);

  /* Metal (legacy, non usato esplicitamente qui) */
  --metal-specular: rgba(255, 255, 255, .20);
  --metal-specular-soft: rgba(255, 255, 255, .10);
  --metal-edge-light: rgba(255, 255, 255, .18);
  --metal-edge-soft: rgba(255, 255, 255, .08);
  --metal-brushed-dark: rgba(0, 0, 0, .035);
  --metal-brushed-light: rgba(255, 255, 255, .05);
  --metal-lines-opacity: .14;
  --metal-angle: 90deg;
  --metal-band-start: 16%;
  --metal-band-end: 46%;
}

/* Global reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
[hidden] { display: none !important; }
body, button, input, textarea { font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }

/* ========== Sezione 2: HERO ========== */
.pf-hero-slashed .hero-overlay {
  justify-content: center;
}

.pf-hero-slashed .hero-content--left {
  text-align: center;
  margin-left: 0;
  width: 100%;
}

.pf-hero-slashed .hero-title {
  font-size: clamp(28px, 6.5vw, 96px) !important;
  line-height: 1.08;
  letter-spacing: .02em;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-transform: lowercase !important;
}

.pf-hero-slashed .hero-title::first-letter { text-transform: uppercase !important; }

.rimando-anchor { scroll-margin-top: var(--hdr-h); }


@media (max-width:1024px){
  .page-wrapper[data-page="assemblaggio"] .hero-content--left {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
  }
}

@media (max-width:768px) {
  .page-wrapper[data-page="assemblaggio"] .hero-content--left {
    max-width: 92%;
    padding: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  .pf-hero-slashed .hero-title { font-size: clamp(34px, 9vw, 116px) !important; }
  .pf-hero-slashed .hero-scroll-cue { height: 42px; }
  .pf-hero-slashed .hero-scroll-cue__runner { height: 14px; }
}

/* ========== Sezione 3: Overview (img+testi) ========== */
.pf-about-overview {
  --blue-1: #1e3a8a; --blue-2: #2563eb; --blue-3: #60a5fa; --ink: #0b0b0b;
  --media-left-shift: clamp(-72px, -6vw, -120px);
  --box-width: 110%;
  --frame-scale: 0.84;
  --fx-size: 94%;

  background: #fff; color: #0b0b0b;
  font-family: 'Montserrat', system-ui, sans-serif;
  padding: clamp(28px, 4vw, 64px) 0;
  padding-top: 140px;
}
.pf-about-overview .about-wrap {
  max-width: clamp(1100px, 92vw, 1280px);
  padding: 0 clamp(16px, 3vw, 28px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr; grid-template-areas: "media copy";
  align-items: center; gap: clamp(18px, 3vw, 38px);
}
.pf-about-overview .about-media { grid-area: media; position: relative; margin-left: var(--media-left-shift); overflow: visible; }
.pf-about-overview .about-copy { grid-area: copy; }

.pf-about-overview .af-box { position: relative; width: var(--box-width); aspect-ratio: 4/3; overflow: visible; }
.pf-about-overview .af-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: var(--fx-size); height: var(--fx-size); border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(96, 165, 250, .42) 0%, rgba(37, 99, 235, .18) 55%, rgba(37, 99, 235, 0) 72%);
  filter: blur(16px); pointer-events: none; z-index: 0;
}
.pf-about-overview .af-orbit {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: var(--fx-size); height: var(--fx-size); border-radius: 999px;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, .85) 0deg, rgba(96, 165, 250, .9) 40deg, rgba(37, 99, 235, .9) 140deg, rgba(59, 130, 246, .85) 220deg, rgba(255, 255, 255, .85) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(50% - 11px), #000 calc(50% - 10px));
  mask: radial-gradient(farthest-side, transparent calc(50% - 11px), #000 calc(50% - 10px));
  opacity: .34; filter: blur(.2px); pointer-events: none; z-index: 0;
  animation: afSpin 22s linear infinite;
}
@keyframes afSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .pf-about-overview .af-orbit { animation: none; } }
.pf-about-overview .af-frame {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: #f1f5f9;
  border: 1px solid rgba(37, 99, 235, .18); box-shadow: 0 12px 26px rgba(2, 6, 23, .10);
  transform-origin: left center; transform: scale(var(--frame-scale)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .28s cubic-bezier(.22, .61, .36, 1), border-color .25s ease; z-index: 1;
}
.pf-about-overview .af-frame:hover {
  transform: scale(calc(var(--frame-scale)*1.02)) perspective(900px) rotateX(1.5deg) rotateY(-1.5deg);
  box-shadow: 0 26px 70px rgba(37, 99, 235, .22), 0 1px 0 rgba(255, 255, 255, .85) inset;
  border-color: rgba(37, 99, 235, .28);
}
.pf-about-overview .af-frame img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.04); transition: transform .45s ease; }
.pf-about-overview .af-frame:hover img { transform: scale(1.07); }
.pf-about-overview .af-shine { position: absolute; inset: -40% -140%; background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, 0) 62%); transform: translateX(-120%) rotate(16deg); opacity: 0; pointer-events: none; }
.pf-about-overview .af-frame:hover .af-shine, .pf-about-overview .af-frame:focus-visible .af-shine { animation: afSweep 1.15s ease-out 1 forwards; }
@keyframes afSweep { 0%{ transform: translateX(-120%) rotate(16deg); opacity: 0; } 25%{ opacity: .18; } 55%{ opacity: .28; } 100%{ transform: translateX(120%) rotate(16deg); opacity: 0; } }

.pf-about-overview .about-copy { text-align: left; margin-left: calc(clamp(8px, 1vw, 16px) + 120px); }
.pf-about-overview .about-eyebrow { display: inline-block; margin: 0 0 12px; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--blue-2); font-weight: 700; line-height: 1; }
.pf-about-overview .about-title { margin: 0 0 14px; font-weight: 800; line-height: 1.06; font-size: clamp(30px, 3.8vw, 56px); letter-spacing: .005em; color: var(--ink); }
.pf-about-overview .about-subtitle { margin: 0; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.68; max-width: 84ch; color: #334155; opacity: .95; }

@media (max-width:980px) {
  .pf-about-overview { position: relative; z-index: 10; overflow: visible; padding-top: 0; margin-top: -30px; padding-bottom: calc(clamp(28px, 4vw, 64px) - 10px); }
  .pf-about-overview .about-wrap { grid-template-columns: 1fr; grid-template-areas: "copy" "media"; overflow: visible; }
  .pf-about-overview .about-media { margin-left: 0; display: flex; justify-content: center; overflow: visible; }
  .pf-about-overview .af-box { width: 100%; max-width: 720px; margin: 0 auto; overflow: visible; }
  .pf-about-overview .af-frame { transform-origin: center center; }
  .pf-about-overview .about-copy { margin-left: 0; }
  .pf-about-overview .about-subtitle { max-width: 68ch; }
}

/* ========== Sezione 4: Compare ========== */
.pf-whiteband { background: #ffffff; padding: clamp(28px, 4vw, 72px) 0; font-family: 'Montserrat', system-ui, sans-serif; }
.pf-hero-compare { --blue-2: #2563eb; --ink: #0b0b0b; --radius: 18px; --max: clamp(1020px, 92vw, 1280px); --pos: 50; color: var(--ink); background: transparent; padding-bottom: 90px; }
.pf-hero-compare .inner { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 28px); display: grid; grid-template-columns: 1.05fr 1.2fr; align-items: center; gap: clamp(18px, 3vw, 34px); min-height: clamp(520px, 62vh, 720px); }
.pf-hero-compare h1 { margin: 0 0 12px; font-weight: 800; line-height: 1.15; font-size: clamp(24px, 3.1vw, 46px); letter-spacing: .01em; color: var(--ink); }
.pf-hero-compare .subtitle { margin: 0 0 18px; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.6; width: min(60ch, 100%); opacity: .95; color: var(--ink); }
.pf-hero-compare ul { margin: 0 0 6px; padding: 0; list-style: none; color: #8a8a8a; display: grid; gap: 10px; font-weight: 600; font-size: clamp(14px, 1.4vw, 17px); }
.pf-hero-compare ul li::before { content: "✔"; color: var(--blue-2); margin-right: 10px; }
.pf-compare-wrap { position: relative; border-radius: var(--radius); }

.pf-compare { position: relative; border-radius: var(--radius); overflow: hidden; background: #ffffff; border: 1px solid rgba(2, 6, 23, .08);
  box-shadow: 0 12px 26px rgba(2, 6, 23, .08); aspect-ratio: 16/10; user-select: none; touch-action: none; isolation: isolate; z-index: 1; }
.pf-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-compare .after { filter: contrast(1.02) saturate(1.02); z-index: 1; }
.pf-compare .before { z-index: 2; clip-path: polygon(0 0, calc(var(--pos) * 1%) 0, calc(var(--pos) * 1%) 100%, 0 100%); will-change: clip-path; }
.pf-compare .divider { position: absolute; top: 0; left: calc(var(--pos) * 1%); transform: translateX(-50%); width: 2px; height: 100%;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0) 0%, rgba(37, 99, 235, .85) 35%, rgba(37, 99, 235, .85) 65%, rgba(37, 99, 235, 0) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset; pointer-events: none; z-index: 3; }
.pf-compare .handle { position: absolute; top: 50%; left: calc(var(--pos) * 1%); transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--blue-2); display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .18), 0 0 0 1px rgba(2, 6, 23, .06) inset; transition: transform .12s ease; cursor: grab; touch-action: none; z-index: 5; }
.pf-compare .handle:active { cursor: grabbing; }
.pf-compare .handle:after { content: "↔"; font-weight: 800; font-size: 18px; line-height: 1; }
.pf-compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }

.labels-fixed { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.labels-fixed .label { position: absolute; top: 12px; padding: 6px 12px; border-radius: 10px; font-weight: 700; font-size: 13px; white-space: nowrap; color: #fff;
  background: rgba(11, 18, 32, .82); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(2, 6, 23, .35) inset; }
.labels-fixed .label.before { left: 16px; } .labels-fixed .label.after { right: 16px; }

@media (max-width: 980px) {
  .pf-hero-compare .inner { grid-template-columns: 1fr; min-height: auto; }
  /* Mobile only: aumenta il padding-bottom di 15px */
  .pf-hero-compare { padding-bottom: 15px; }
}

/* ========== Sezione 5: Footer ========== */
.alc-footer { --navy: #1e3a8a; --dark: #0f172a; --white: #ffffff; --wm-opacity: .10; --container: min(1280px, 92vw);
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--white); background: var(--dark); position: relative; overflow: hidden; z-index: 0; }
.alc-footer .footer-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: clamp(440px, 36vw, 680px); height: auto; opacity: var(--wm-opacity);
  pointer-events: none; z-index: 2; object-fit: contain; filter: saturate(.9) contrast(1.02); }
.footer-cta, .footer-bottom { position: relative; z-index: 1; }
.footer-cta { background: var(--navy); padding: clamp(40px, 6vw, 90px) 0; text-align: center; }
.footer-bottom { background: var(--dark); padding: clamp(28px, 4.8vw, 64px) 0 clamp(16px, 3vw, 32px); }
.footer-container { width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); position: relative; z-index: 3; }
.cta-head { max-width: 920px; margin: 0 auto clamp(18px, 3.6vw, 30px); }
.cta-title { margin: 0 0 10px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.18; font-size: clamp(24px, 3.6vw, 40px); color: var(--white); }
.cta-subtitle { margin: 0; color: #e2e8f0; font-size: clamp(14px, 1.4vw, 18px); line-height: 1.6; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: clamp(14px, 2.2vw, 22px); }
.btn { border: 1.5px solid var(--white); background: transparent; color: var(--white); padding: 13px 22px; border-radius: 10px; font-weight: 800; font-size: 15.5px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s ease; }
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .06); }
.footer-cols { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(16px, 3vw, 32px); margin-bottom: clamp(18px, 3vw, 28px); }
.brand-logo { width: clamp(140px, 18vw, 200px); height: auto; margin-bottom: 10px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: .2px; }
.info-list, .legal-list { list-style: none; margin: 0; padding: 0; color: #e5e7eb; font-size: 14.5px; line-height: 1.7; }
.info-list a, .legal-list a { color: #e5e7eb; text-decoration: none; border-bottom: 1px dotted rgba(229, 231, 235, .35); }
.legal-list a:hover, .info-list a:hover { color: #fff; }
.footer-copy { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: clamp(10px, 1.6vw, 14px); font-size: 13.5px; color: #cbd5e1; text-align: center; }
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr; text-align: center; gap: 14px; margin-bottom: 14px; }
  .alc-footer .footer-watermark { width: clamp(360px, 34vw, 520px); }
  .brand-logo { margin: 0 auto 8px; }
  .cta-actions { margin-top: 12px; }
  .btn { padding: 10px 16px; font-size: 14px; border-radius: 9px; }
  .footer-info { text-align: center; }
  .footer-info .info-list { text-align: center; margin-left: 0; }
  .footer-legal .legal-list { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; white-space: nowrap; gap: 0; font-size: clamp(10px, 2.8vw, 12px); letter-spacing: -0.1px; }
  .footer-legal .legal-list li { display: inline; }
  .footer-legal .legal-list li + li::before { content: "•"; margin: 0 6px; opacity: .6; }
  .footer-bottom { padding-top: 20px; padding-bottom: 18px; }
}
