/* ==========================================================================
   Genzini Costruzioni — tema blu, liquid glass, minimal
   Palette: blu profondo + gradiente del logo #0A4BFF → #67D6FF
   Font: Cardo (ospitato in /fonts)
   ========================================================================== */

@font-face { font-family: "Cardo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cardo-400-normal-latin.woff2") format("woff2"); }
@font-face { font-family: "Cardo"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cardo-400-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Cardo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cardo-700-normal-latin.woff2") format("woff2"); }

:root {
  --bg-0: #030c26;
  --bg-1: #061a4f;
  --bg-2: #0a2a7a;
  --bg-3: #0f3aa3;
  --blue: #0a4bff;
  --blue-2: #3a8dff;
  --cyan: #67d6ff;
  --white: #ffffff;
  --text: #e8efff;
  --text-2: #b8c8ee;
  --text-3: #8ea3d6;
  --line: rgba(255, 255, 255, .14);
  --grad: linear-gradient(135deg, #0a4bff 0%, #2f7bff 45%, #67d6ff 100%);
  --radius: 24px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .65);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Cardo", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --header-h: 76px;
  /* vetro */
  --g-bg: linear-gradient(150deg, rgba(255,255,255,.16), rgba(255,255,255,.05) 55%, rgba(255,255,255,.09));
  --g-border: rgba(255,255,255,.22);
  --g-blur: blur(22px) saturate(190%);
  --g-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.08), inset 1px 0 0 rgba(255,255,255,.12), 0 20px 50px -24px rgba(0,0,0,.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: clamp(17px, 1.05vw + 12px, 19.5px); line-height: 1.65;
  color: var(--text); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 12% -5%, rgba(10,75,255,.55), transparent 60%),
    radial-gradient(900px 600px at 95% 20%, rgba(103,214,255,.22), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 35%, var(--bg-1) 70%, var(--bg-0) 100%);
  background-attachment: fixed;
}
/* aurora e grana: profondità "premium" */
body::before { content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 35% at 20% 30%, rgba(10,75,255,.35), transparent 70%), radial-gradient(35% 30% at 80% 70%, rgba(103,214,255,.18), transparent 70%);
  filter: blur(40px); animation: aurora 26s ease-in-out infinite alternate; }
body::after { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes aurora { 0% { transform: translate3d(0,0,0) rotate(0); } 100% { transform: translate3d(6%,4%,0) rotate(8deg); } }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; color: #fff; }
h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
p { margin: 0 0 1em; }
strong { font-weight: 700; color: #fff; }
::selection { background: var(--cyan); color: var(--bg-0); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--blue); color: #fff; border-radius: 10px; }
.skip:focus { top: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: .7em; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.2em; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: clamp(1.12rem, 1.4vw, 1.35rem); color: var(--text-2); max-width: 48ch; }
.grad-text { background: linear-gradient(120deg, #9fd8ff, #67d6ff 40%, #ffffff 70%, #67d6ff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.muted { color: var(--text-3); }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative; isolation: isolate; background: var(--g-bg);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  border: 1px solid var(--g-border); box-shadow: var(--g-shadow);
}
.glass::before { /* bordo speculare (luce che scorre sul vetro) */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,255,255,0) 30%, rgba(255,255,255,0) 65%, rgba(103,214,255,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass::after { /* riflesso interno */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 60% at 15% 0%, rgba(255,255,255,.18), transparent 55%);
}
.glass--dark { --g-bg: linear-gradient(150deg, rgba(3,12,38,.55), rgba(3,12,38,.3)); }

/* ---------- Pulsanti (tutti in vetro) ---------- */
.btn {
  --h: 54px; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--h); padding: 0 1.6em; border-radius: 999px; font-family: var(--font); font-size: 1.04rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; white-space: nowrap; color: #fff;
  background: var(--g-bg); border: 1px solid var(--g-border); box-shadow: var(--g-shadow);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  transition: transform .5s var(--ease), box-shadow .4s var(--ease), background .4s;
}
.btn::before { /* riflesso che attraversa il vetro al passaggio */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transition: transform .9s var(--ease);
}
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -2;
  background: radial-gradient(100% 70% at 50% 0%, rgba(255,255,255,.28), transparent 60%); }
.btn:hover { color: #fff; box-shadow: var(--g-shadow), 0 0 0 1px rgba(255,255,255,.18), 0 16px 40px -14px rgba(103,214,255,.55); }
.btn:hover::before { transform: translateX(120%) skewX(-20deg); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: linear-gradient(135deg, rgba(10,75,255,.78), rgba(58,141,255,.55) 55%, rgba(103,214,255,.45)); border-color: rgba(255,255,255,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -8px 18px -10px rgba(3,12,38,.6), 0 18px 40px -16px rgba(10,75,255,.9); }
.btn--glass, .btn--ghost { color: #fff; }
.btn--sm { --h: 42px; padding: 0 1.15em; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 12px var(--gutter); }
.site-header .bar { display: flex; align-items: center; gap: 18px; height: calc(var(--header-h) - 20px); padding: 0 8px 0 16px; max-width: 1320px; margin: 0 auto; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
/* il logo blu risalta su una piastrina bianca luminosa */
.brand svg { width: 44px; height: 44px; padding: 5px; border-radius: 14px; flex: none;
  background: radial-gradient(120% 120% at 30% 20%, #ffffff 0%, #f1f6ff 55%, #dbe8ff 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(10,75,255,.15), 0 6px 16px -6px rgba(0,0,0,.5), 0 0 18px -2px rgba(103,214,255,.55); }
.brand span { font-size: 1.1rem; letter-spacing: .02em; line-height: 1; }
.brand small { display: block; font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav::before, .nav::after { display: none; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a, .nav button.navlink { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; color: var(--text); text-decoration: none; font: inherit; font-size: 1rem; background: none; border: 1px solid transparent; cursor: pointer; transition: .3s; }
.nav > ul a:hover, .nav button.navlink:hover, .nav > ul a[aria-current="page"] { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); color: #fff; }
.has-sub { position: relative; }
.submenu { position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0; width: 580px; padding: 12px; border-radius: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .35s var(--ease); --g-bg: linear-gradient(150deg, rgba(6,26,79,.85), rgba(6,26,79,.7)); }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; border-radius: 16px; padding: 10px 14px; line-height: 1.3; }
.submenu a:hover { background: rgba(255,255,255,.08); }
.submenu a small { display: block; color: var(--text-3); font-size: .82rem; }
.header-cta { display: flex; gap: 8px; margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--g-bg); border: 1px solid var(--g-border); box-shadow: var(--g-shadow); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: #fff; margin: 4px auto; transition: .3s; }
.nav-open .menu-toggle span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-open .menu-toggle span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
@media (max-width: 1100px) { .header-cta .btn--glass { display: none; } }
@media (max-width: 1180px) and (min-width: 961px) { .nav a, .nav button.navlink { padding: 9px 11px; } .brand small { display: none; } }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: calc(var(--header-h) + 4px) var(--gutter) auto; display: none; flex-direction: column; align-items: stretch; padding: 14px; border-radius: 28px; max-height: calc(100dvh - var(--header-h) - 24px); overflow: auto;
    background: linear-gradient(150deg, rgba(6,26,79,.92), rgba(6,26,79,.82)); border: 1px solid var(--g-border); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); }
  .nav-open .nav { display: flex; }
  .nav > ul { flex-direction: column; }
  .submenu { position: static; translate: none; width: auto; grid-template-columns: 1fr; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; }
  .submenu::before { display: none; }
  .has-sub.open .submenu { display: grid; }
  .header-cta { margin: 10px 0 0; flex-direction: column; }
  .header-cta .btn--glass { display: inline-flex; }
}

/* ---------- Sezioni ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--tint { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)); }
.section--dark { background: radial-gradient(100% 80% at 80% 0%, rgba(10,75,255,.35), transparent 60%), rgba(3,12,38,.45); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }

/* titoli che salgono parola per parola */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }

/* ---------- HERO con animazione getto ---------- */
.pour { height: 380vh; }
.pour__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0a2f8f; }
.pour__stage::after { content: ""; position: absolute; inset: auto 0 0; height: 18%; pointer-events: none; z-index: 2; background: linear-gradient(180deg, transparent, var(--bg-1)); }
.pour__media { position: absolute; inset: 0; --z: 1; }
.pour__canvas, .pour__poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pour__poster { object-fit: cover; transition: opacity .4s; }
.pour__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,26,79,.55) 0%, rgba(6,26,79,.18) 42%, transparent 70%), linear-gradient(180deg, rgba(6,26,79,.35) 0%, transparent 20%); }
@media (max-width: 760px) {
  .pour__media::after { background: linear-gradient(180deg, rgba(6,26,79,.35) 0%, transparent 18%, transparent 45%, rgba(6,26,79,.55) 100%); }
}
.pour__copy { position: absolute; z-index: 3; left: var(--gutter); top: calc(var(--header-h) + clamp(20px, 6vh, 70px)); width: min(580px, calc(100% - 2 * var(--gutter))); }
.phase { position: absolute; inset: 0 auto auto 0; width: 100%; padding: clamp(24px, 3vw, 38px); border-radius: 32px; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .3s ease, transform .3s ease, visibility 0s .3s; pointer-events: none; }
.phase.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .7s var(--ease) .25s, transform .7s var(--ease) .25s, visibility 0s .25s; }
.phase h1 { font-size: clamp(2.2rem, 4.8vw, 4.3rem); margin-bottom: .35em; }
.phase h2 { font-size: clamp(1.8rem, 3.3vw, 2.8rem); }
.phase p { color: var(--text-2); }
.tagline { font-style: italic; color: #cfe6ff !important; font-size: 1.15em; }
.pour__chip { position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--header-h) + 18px); display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 14px; border-radius: 22px; font-variant-numeric: tabular-nums; transition: opacity .4s; }
.pour__chip.is-hidden { opacity: 0; }
.pour__chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #3cf08a; animation: ping 1.6s infinite; }
.pour__chip b { display: block; font-size: 1.45rem; font-weight: 400; color: #fff; letter-spacing: .03em; line-height: 1.1; }
.pour__chip small { display: block; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }
.pour__bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 6px; }
.pour__bar i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 10px var(--cyan); }
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 26px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: #fff; transition: opacity .4s; }
.scroll-hint i { width: 22px; height: 36px; border: 1.5px solid currentColor; border-radius: 14px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: currentColor; border-radius: 3px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(60,240,138,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(60,240,138,0); } }

.stream { stroke-dasharray: 18 14; animation: flow .45s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.vib-on #poker { animation: jitter .06s steps(2) infinite; }
@keyframes jitter { 0% { transform: translate(.8px, -.6px); } 100% { transform: translate(-.8px, .6px); } }
.ripple { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
.vib-on .ripple { animation: ripple 1.4s var(--ease) infinite; }
.vib-on .ripple:nth-of-type(2) { animation-delay: .45s; }
.vib-on .ripple:nth-of-type(3) { animation-delay: .9s; }
@keyframes ripple { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

@media (max-width: 760px) {
  .pour { height: 340vh; }
  .pour__copy { top: auto; bottom: 86px; }
  .phase { inset: auto auto 0 0; }
  .phase:first-child > p:not(.eyebrow):not(.tagline) { display: none; }
  .phase:first-child .btn-row { flex-wrap: nowrap; }
  .phase:first-child .tagline { font-size: 1rem; margin-bottom: .8em; }
  .phase { padding: 18px 20px; border-radius: 24px; }
  .phase h1 { font-size: 2.05rem; }
  .phase h2 { font-size: 1.6rem; }
  .phase p { font-size: .98rem; margin-bottom: .6em; }
  .phase .btn { --h: 46px; }
  .phase .eyebrow { font-size: .64rem; letter-spacing: .16em; margin-bottom: .6em; }
  .phase .btn-row { gap: 8px; }
  .phase .btn-row .btn { flex: 1 1 auto; padding: 0 1.05em; font-size: .98rem; }
  .pour__chip { top: auto; bottom: calc(100vw * .92 + 6px); right: var(--gutter); padding: 8px 12px; gap: 10px; }
  .pour__chip b { font-size: 1.1rem; }
  .pour__bar { width: 80px; }
  .scroll-hint { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) { .pour__chip { display: none; } }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.intro-media { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); border: 1px solid var(--line); }
.intro-media img { width: 100%; height: 100%; object-fit: cover; }
.intro-badge { position: absolute; left: 16px; bottom: 16px; right: 16px; padding: 16px 20px; border-radius: 22px; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(to top right, #0a4bff 0%, #67d6ff 100%); border: 1px solid rgba(255,255,255,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 18px 40px -16px rgba(10,75,255,.8); }
.intro-badge b, .intro-badge span { color: #fff !important; text-shadow: 0 1px 2px rgba(6,26,79,.35); }
.intro-badge svg { width: 44px; height: 44px; flex: none; }
.intro-badge b { display: block; font-weight: 400; font-size: 1.15rem; color: #fff; }
.intro-badge span { font-size: .9rem; color: var(--text-2); }
.cert-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.cert-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.cert-list svg { width: 26px; height: 26px; flex: none; color: var(--cyan); margin-top: 3px; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } .intro-media { aspect-ratio: 4/3; } }

/* ---------- Servizi ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1200px; }
.svc { position: relative; display: flex; flex-direction: column; min-height: 440px; border-radius: 28px; overflow: hidden; text-decoration: none; color: #fff; background: var(--bg-0); isolation: isolate; box-shadow: var(--shadow); border: 1px solid var(--line); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.svc__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.svc__media img, .svc__media svg { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease); }
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3,12,38,0) 30%, rgba(3,12,38,.92) 100%); }
.svc:hover .svc__media img, .svc:hover .svc__media svg { transform: scale(1.02); }
.svc__body { margin-top: auto; padding: 24px; }
.svc__body h3 { color: #fff; margin-bottom: .3em; }
.svc__body p { font-size: .95rem; color: rgba(255,255,255,.8); margin: 0; }
.svc__num { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; font-size: .78rem; letter-spacing: .14em; color: #fff; }
.svc__arrow { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .5s var(--ease); }
.svc:hover .svc__arrow { transform: rotate(-45deg); }
.svc__arrow svg { width: 18px; height: 18px; }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .svc { min-height: 360px; } }

/* ---------- Battito / cronometro ---------- */
.pulse-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.pulse-card { border-radius: 36px; padding: clamp(26px, 4vw, 48px); }
.odo-label { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--cyan); }
.odo-row { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); margin: 10px 0 6px; }
.odo { display: inline-flex; font-size: clamp(4.4rem, 11vw, 9.5rem); line-height: 1; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 40px rgba(103,214,255,.35); }
.odo .col { display: inline-block; height: 1em; overflow: hidden; position: relative; }
.odo .reel { display: flex; flex-direction: column; transition: transform 2.4s var(--ease); }
.odo .reel span { height: 1em; display: block; text-align: center; }
.odo-arrow { font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--cyan); font-style: italic; }
.drum-beat { width: clamp(84px, 11vw, 140px); height: auto; flex: none; filter: drop-shadow(0 10px 24px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(103,214,255,.25)); }
.drum-beat .spin { transform-origin: 80px 80px; animation: spin 3.2s linear infinite; }
/* medaglione di vetro con il logo, accanto al 1997 */
.logo-medal { position: relative; flex: none; width: clamp(88px, 11vw, 136px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 120% at 30% 20%, #67d6ff 0%, #2f7bff 45%, #0a4bff 75%, #0a2a7a 100%);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.75), inset 0 -8px 18px rgba(3,12,38,.45), inset 0 0 0 1.5px rgba(255,255,255,.4), 0 16px 34px -12px rgba(0,0,0,.7), 0 0 30px -6px rgba(103,214,255,.6);
  animation: medalFloat 5s ease-in-out infinite; }
.logo-medal svg { width: 62%; height: 62%; filter: drop-shadow(0 2px 4px rgba(3,12,38,.45)); }
.logo-medal::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 2; pointer-events: none;
  background: radial-gradient(50% 32% at 34% 18%, rgba(255,255,255,.55), transparent 70%); }
.logo-medal::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; z-index: 3; pointer-events: none; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: medalShine 4.5s ease-in-out infinite; }
@keyframes medalFloat { 50% { transform: translateY(-6px); } }
@keyframes medalShine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
/* bocca di betoniera reale che gira */
.drum-photo { position: relative; flex: none; width: clamp(88px, 11vw, 140px); aspect-ratio: 1; border-radius: 50%; isolation: isolate;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.7), 0 0 0 2px rgba(255,255,255,.18), 0 0 26px -4px rgba(103,214,255,.35); }
.drum-photo img { width: 100%; height: 100%; display: block; border-radius: 50%; animation: spin 4.5s linear infinite; }
.drum-photo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(45% 35% at 32% 24%, rgba(255,255,255,.45), transparent 70%), radial-gradient(circle at 50% 50%, transparent 58%, rgba(0,0,0,.35) 100%);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.5), inset 0 -4px 10px rgba(0,0,0,.4); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.08); } 24% { transform: scale(.98); } 36% { transform: scale(1.05); } 50% { transform: scale(1); } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.stat { padding: 18px; border-radius: 22px; }
.stats--one { grid-template-columns: minmax(0, 260px) !important; }
.stats--one .stat { display: flex; align-items: baseline; gap: 12px; }
.stats--one .stat span { margin: 0 !important; font-size: .95rem !important; }
.stat b { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 400; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .88rem; color: var(--text-2); }
.live { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); font-variant-numeric: tabular-nums; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
@media (max-width: 900px) { .pulse-grid { grid-template-columns: 1fr; } .stat { padding: 14px; } }
@media (max-width: 480px) { .stats { gap: 8px; } .stat { padding: 12px 10px; border-radius: 16px; } .stat b { font-size: 1.7rem; } .stat span { font-size: .72rem; line-height: 1.3; display: block; margin-top: 4px; } }

/* ---------- Galleria orizzontale (scroll-driven) ---------- */
.hscroll { height: 340vh; }
.hscroll__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hscroll__head { padding: 0 var(--gutter); margin: 0 auto 28px; width: min(var(--container), 100%); display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.hscroll__head h2 { margin: 0; }
.hscroll__track { display: flex; gap: clamp(14px, 2vw, 26px); padding-left: max(var(--gutter), (100vw - var(--container)) / 2); will-change: transform; }
.hcard { position: relative; flex: none; width: clamp(260px, 34vw, 480px); aspect-ratio: 4/5; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; border: 1px solid var(--line); }
.hcard:nth-child(even) { aspect-ratio: 4/3.6; align-self: center; }
.hcard img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, 1.15)); transition: transform .2s linear; }
.hcard figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px 16px; border-radius: 18px; font-size: .95rem; color: #fff; }
.hscroll__progress { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin: 28px auto 0; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.hscroll__progress i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px var(--cyan); }

/* ---------- Marchi (marquee) ---------- */
.brands { padding: clamp(70px, 9vw, 120px) 0; overflow: hidden; }
.brands h2 { text-align: center; font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 8px; }
.brands .sub { text-align: center; color: var(--text-3); margin-bottom: 40px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee + .marquee { margin-top: 16px; }
.marquee__track { display: flex; flex: none; gap: 16px; padding-right: 16px; padding-block: 4px; animation: marquee 44s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 50s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.brand-pill { flex: none; display: inline-flex; align-items: center; gap: 12px; height: 78px; padding: 0 32px; border-radius: 22px; white-space: nowrap; color: #fff; }
.brand-pill b { font-size: 1.5rem; font-weight: 700; letter-spacing: .01em; }
.brand-pill small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 600px) { .brand-pill { height: 58px; padding: 0 20px; border-radius: 18px; gap: 8px; } .brand-pill b { font-size: 1.15rem; } .brand-pill small { font-size: .6rem; letter-spacing: .14em; } .marquee__track { animation-duration: 34s; } }

/* ---------- Metodo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 30px 26px; border-radius: var(--radius); counter-increment: step; }
.step::before { content: "0" counter(step); display: block; font-size: 2.8rem; line-height: 1; margin-bottom: 18px; background: linear-gradient(135deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { margin: 0; color: var(--text-2); font-size: .98rem; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 22px; padding: 0 26px; position: relative; background: var(--g-bg); border: 1px solid var(--g-border); box-shadow: var(--g-shadow); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); transition: background .3s; }
.faq details[open] { background: linear-gradient(150deg, rgba(255,255,255,.2), rgba(255,255,255,.07)); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 38px 22px 0; position: relative; font-size: 1.14rem; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 1.5px solid var(--cyan); border-bottom: 1.5px solid var(--cyan); transform: rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 22px; color: var(--text-2); }

/* ---------- CTA ---------- */
.cta { border-radius: 40px; padding: clamp(34px, 6vw, 80px); position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 120% at 100% 0%, rgba(103,214,255,.45), transparent 60%), linear-gradient(135deg, rgba(10,75,255,.85), rgba(10,42,122,.85));
  border: 1px solid rgba(255,255,255,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), var(--shadow); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); max-width: 52ch; }
.cta-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- Icone app in liquid glass (colori originali) ---------- */
.socials { display: flex; gap: 16px; flex-wrap: wrap; }
/* l'icona originale è "congelata" dentro un guscio di vetro spesso, con riflessi e una leggera brina sopra */
.soc {
  --c1: #5ef27f; --c2: #12b83a; --ico: linear-gradient(180deg, var(--c1), var(--c2));
  position: relative; width: 66px; height: 66px; padding: 7px; border-radius: 22px; display: block; isolation: isolate;
  color: #fff; text-decoration: none;
  background: linear-gradient(150deg, rgba(255,255,255,.34), rgba(255,255,255,.08) 45%, rgba(255,255,255,.16));
  -webkit-backdrop-filter: blur(18px) saturate(190%); backdrop-filter: blur(18px) saturate(190%);
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,.95), inset 0 -1.5px 1px rgba(255,255,255,.4),
    inset 1.5px 0 1px rgba(255,255,255,.3), inset -1.5px 0 1px rgba(255,255,255,.22),
    inset 0 0 12px rgba(255,255,255,.18),
    0 16px 32px -12px rgba(0,0,0,.6), 0 6px 18px -8px color-mix(in srgb, var(--c2) 70%, transparent);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.soc__ico { position: absolute; inset: 7px; border-radius: 15px; display: grid; place-items: center; background: var(--ico); overflow: hidden;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35), inset 0 -6px 10px -4px rgba(0,0,0,.18), 0 1px 3px rgba(0,0,0,.35); }
.soc__ico svg { width: 60%; height: 60%; color: #fff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
/* strato di vetro sopra l'icona: brina leggera, riflesso alto e spessore del bordo */
.soc__frost { position: absolute; inset: 0; border-radius: inherit; z-index: 2; pointer-events: none;
  -webkit-backdrop-filter: blur(.9px) brightness(1.06) saturate(115%); backdrop-filter: blur(.9px) brightness(1.06) saturate(115%);
  background:
    linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.14) 34%, rgba(255,255,255,0) 52%, rgba(255,255,255,.06) 80%, rgba(255,255,255,.2) 100%),
    radial-gradient(28% 28% at var(--gx, 28%) var(--gy, 22%), rgba(255,255,255,.55), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='60' height='60' filter='url(%23f)'/%3E%3C/svg%3E");
  box-shadow: inset 0 2px 3px rgba(255,255,255,.75), inset 0 -3px 6px rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.4); }
.soc::before { /* bordo curvo che rifrange la luce */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 3; pointer-events: none;
  background: conic-gradient(from 210deg, rgba(255,255,255,.95), rgba(255,255,255,.08) 25%, rgba(255,255,255,.6) 50%, rgba(255,255,255,.08) 75%, rgba(255,255,255,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.soc:hover { color: #fff; }
/* icone di vetro fornite dal cliente */
.soc--img { padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 23%;
  box-shadow: 0 14px 28px -12px rgba(0,0,0,.6), 0 0 22px -6px rgba(255,255,255,.25); }
.soc--img::before { display: none; }
.soc--img img { width: 100%; height: 100%; display: block; border-radius: inherit; pointer-events: none; }
.soc--img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(35% 35% at var(--gx, 30%) var(--gy, 25%), rgba(255,255,255,.55), transparent 70%); }
.soc--img:hover::after { opacity: 1; }
.soc--wa { --c1: #5ef27f; --c2: #12b83a; }
.soc--mail { --c1: #5fcdfb; --c2: #1a6ff0; }
.soc--fb { --c1: #3b8cff; --c2: #0866ff; }
.soc--tt { --ico: linear-gradient(180deg, #2a2a2a, #000); --c2: #25f4ee; }
.soc--ig { --c2: #d6249f; --ico: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

/* ---------- Pagine servizio ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(50px, 8vw, 110px)) 0 clamp(40px, 5vw, 64px); }
.crumbs { font-size: .88rem; color: var(--text-3); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.expand { width: min(1320px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.expand__inner { --w: 86%; --r: 36px; width: var(--w); margin: 0 auto; border-radius: var(--r); overflow: hidden; aspect-ratio: 16/8; box-shadow: var(--shadow); border: 1px solid var(--line); }
.expand__inner img, .expand__inner svg { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1.12)); }
@media (max-width: 700px) { .expand__inner { aspect-ratio: 4/3.4; } }
.content-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.content-grid > div > p { color: var(--text-2); }
.content-grid aside { position: sticky; top: calc(var(--header-h) + 20px); padding: 30px; border-radius: 30px; }
.content-grid aside h3 { margin-bottom: .6em; }
.content-grid aside ul a { color: var(--text-2); }
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, rgba(10,75,255,.85), rgba(103,214,255,.7)); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 14px rgba(103,214,255,.35); }
.checks li::after { content: ""; position: absolute; left: 8.5px; top: calc(.28em + 6px); width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } .content-grid aside { position: static; } }

.masonry { columns: 3 300px; column-gap: 16px; }
.masonry figure { margin: 0 0 16px; break-inside: avoid; border-radius: 22px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.masonry a { display: block; text-decoration: none; }
.masonry img { width: 100%; transition: transform 1.2s var(--ease); }
.masonry a:hover img { transform: scale(1.05); }
.masonry figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 14px; border-radius: 16px; font-size: .9rem; color: #fff; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); }
.masonry figure:hover figcaption, .masonry figure:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .masonry figcaption { opacity: 1; transform: none; } }

/* ---------- Pagina Lavori: progetti in ordine ---------- */
.project-index { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.project-index a { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 16px; color: var(--text-2); text-decoration: none; border: 1px solid transparent; font-size: .96rem; line-height: 1.35; transition: .3s; }
.project-index a span { color: var(--cyan); font-variant-numeric: tabular-nums; }
.project-index a:hover { background: rgba(255,255,255,.07); border-color: var(--line); color: #fff; }
.project { padding: clamp(36px, 6vw, 70px) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 10px); }
.project__head { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 3vw, 36px); align-items: baseline; margin-bottom: 26px; }
.project__num { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .9; background: linear-gradient(135deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.project__head h2 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); margin: 0; max-width: 28ch; }
.project__count { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.project__strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.project__strip figure { flex: none; margin: 0; height: clamp(260px, 42vw, 460px); border-radius: 24px; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); box-shadow: var(--shadow); }
.project__strip img { height: 100%; width: auto; max-width: none; transition: transform 1.2s var(--ease); }
.project__strip a:hover img { transform: scale(1.05); }
@media (max-width: 600px) { .project__head { grid-template-columns: auto 1fr; } .project__count { display: none; } .project__strip figure { height: 62vw; } }

/* ---------- Chi siamo: skyline di Torino ---------- */
.skyline { position: relative; isolation: isolate; min-height: min(110vh, 1000px); display: flex; align-items: center; overflow: hidden; padding: clamp(60px, 9vw, 120px) 0; }
.skyline__media { position: absolute; inset: 0 0 auto; height: 44vw; z-index: -1; overflow: hidden; }   /* foto intera in larghezza: Alpi e Mole visibili */
.skyline__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.skyline__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, var(--bg-1) 0%, rgba(6,26,79,0) 18%, rgba(6,26,79,0) 78%, var(--bg-1) 100%),
  linear-gradient(90deg, rgba(6,26,79,0) 40%, rgba(6,26,79,.35) 100%); }
.skyline__inner { display: flex; justify-content: flex-end; }
.skyline__card { width: min(500px, 100%); padding: clamp(26px, 3.4vw, 42px); border-radius: 34px;
  --g-bg: linear-gradient(160deg, rgba(140,205,255,.68), rgba(80,165,255,.62) 40%, rgba(40,120,245,.7) 75%, rgba(10,75,255,.78));
  --g-border: rgba(255,255,255,.5); --g-blur: blur(28px) saturate(170%); text-shadow: 0 1px 2px rgba(3,12,38,.25); }
.skyline__card h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.skyline__card p { color: #eaf4ff; }
.skyline__data { margin: 22px 0 0; display: grid; gap: 0; }
.skyline__data div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.25); }
.skyline__data dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #d6ecff; padding-top: .35em; }
.skyline__data dd { margin: 0; color: #fff; }
.skyline__data a { color: #fff; text-decoration: none; }
.skyline__credit { position: absolute; left: var(--gutter); bottom: 14px; margin: 0; font-size: .72rem; color: rgba(255,255,255,.6); }
/* computer: il riquadro sale fin sotto il menu, sopra il titolo della pagina */
@media (min-width: 761px) {
  .skyline { overflow: visible; align-items: flex-start; min-height: 44vw; }
  .skyline__card { margin-top: calc(-1 * clamp(150px, 18vw, 270px)); position: relative; z-index: 2; }
}
@media (max-width: 760px) {
  .skyline { min-height: 0; padding-top: 58vw; }   /* telefono: il riquadro parte quasi sotto la foto, Mole ben visibile */
  .skyline__media { bottom: auto; height: 64vw; }
  .skyline__data div { grid-template-columns: 1fr; gap: 2px; }
}

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #fff; }
.lightbox::backdrop { background: rgba(3,12,38,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 16px 24px; gap: 14px; }
.lightbox img { max-height: calc(100vh - 150px); width: auto; border-radius: 18px; }
.lightbox figcaption { color: #fff; text-align: center; }
.lb-btn { position: fixed; z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; cursor: pointer; background: var(--g-bg); border: 1px solid var(--g-border); box-shadow: var(--g-shadow); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 16px; right: 16px; }
/* la foto aperta sta sopra a tutto (anche al cursore personalizzato): qui torna il puntatore normale */
.has-lens .lightbox, .has-lens .lightbox figure { cursor: zoom-out; }
.has-lens .lightbox img, .has-lens .lightbox figcaption { cursor: default; }
.has-lens .lightbox .lb-btn { cursor: pointer; }
.lb-close { width: 58px; height: 58px; }
.lb-close::after { content: "Chiudi"; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); white-space: nowrap; }
.lb-prev { left: 16px; top: 50%; }
.lb-next { right: 16px; top: 50%; }

.layers-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: l; color: var(--text-2); }
.layers-legend li { counter-increment: l; display: flex; gap: 12px; align-items: baseline; }
.layers-legend li::before { content: counter(l); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; color: #fff; background: var(--grad); }

/* ---------- Form contatti ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.contact-card { padding: clamp(24px, 3vw, 38px); border-radius: 32px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 18px; }
.contact-list a { text-decoration: none; color: #fff; font-size: 1.18rem; }
.contact-list small { display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(24px, 3vw, 40px); border-radius: 32px; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: .9rem; color: var(--text-2); }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; color: #fff; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); width: 100%; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); transition: border-color .2s, box-shadow .2s, background .2s; }
.form select option { color: #0b1633; }
.form textarea { min-height: 140px; resize: vertical; }
.form ::placeholder { color: var(--text-3); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); background: rgba(255,255,255,.11); box-shadow: 0 0 0 4px rgba(103,214,255,.15); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.form .check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.form-note { font-size: .85rem; color: var(--text-3); }
.form-error { color: #ff9b9b; font-size: .9rem; min-height: 1.2em; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ---------- Recensioni ---------- */
.stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.stars i { width: 20px; height: 20px; display: block; }
.stars svg { width: 100%; height: 100%; fill: rgba(255,255,255,.18); }
.stars i.on svg { fill: url(#starGrad); fill: #ffc94d; filter: drop-shadow(0 0 6px rgba(255,201,77,.45)); }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 400px)); justify-content: center; gap: 18px; }
.review { padding: 26px; border-radius: 26px; display: flex; flex-direction: column; gap: 14px; }
.review__text { margin: 0; color: var(--text); font-size: 1.05rem; font-style: italic; }
.review footer { margin-top: auto; display: grid; gap: 2px; }
.review footer span { font-size: .85rem; color: var(--text-3); }
.review-empty { max-width: 640px; margin: 0 auto; padding: 34px; border-radius: 28px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.review-empty .stars i { width: 28px; height: 28px; }
.review-empty p { margin: 0; color: var(--text-2); }
.review-avg { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); margin-top: 10px; }
.review-avg b { font-size: 1.6rem; font-weight: 400; color: #fff; }
.google-reviews { margin-bottom: 18px; }
.g-avg { display: flex; justify-content: center; margin: 0 0 26px; }
.g-logo { font-family: Arial, sans-serif; font-weight: 700; background: linear-gradient(90deg, #4285f4 0 25%, #ea4335 25% 45%, #fbbc05 45% 62%, #4285f4 62% 78%, #34a853 78% 88%, #ea4335 88%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.review footer a { color: #fff; text-decoration: none; }
.center-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; }
/* scelta stelle: input radio in ordine 5→1 visualizzati da sinistra 1→5 */
.rate { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.rate legend { font-size: .9rem; color: var(--text-2); padding: 0; margin-bottom: 8px; }
/* valutazione a case (1 baracca → 5 villa), icone a filo */
.hrate svg, .hrow svg, .rate__stars svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }
.hrate .f, .hrow .f, .rate__stars .f { fill: currentColor; fill-opacity: .18; }
.hrate { display: inline-flex; align-items: center; gap: 10px; color: var(--cyan); }
.hrate svg { width: 40px; height: 40px; filter: drop-shadow(0 0 8px rgba(103,214,255,.35)); }
.hrate em, .hrow em, .rate__stars em { font-style: normal; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.hrow { display: flex; gap: clamp(10px, 3vw, 26px); justify-content: center; color: rgba(255,255,255,.55); }
.hrow > span { display: grid; justify-items: center; gap: 6px; }
.hrow svg { width: 38px; height: 38px; }
.hrow > span:last-child { color: var(--cyan); }
.rate__stars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate__stars label { cursor: pointer; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 4px 10px; border-radius: 18px; border: 1px solid transparent; color: rgba(255,255,255,.4); text-align: center; line-height: 1.2; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s; }
.rate__stars label svg { width: clamp(34px, 8vw, 46px); height: clamp(34px, 8vw, 46px); transition: transform .4s var(--ease), filter .3s; }
.rate__stars label:hover { color: rgba(255,255,255,.85); transform: translateY(-2px); }
.rate__stars input:checked + label { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.rate__stars input:checked + label svg { color: var(--cyan); transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(103,214,255,.6)); }
.rate__stars input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; }
.rate__stars em { font-size: .66rem; letter-spacing: .05em; }
@media (max-width: 420px) { .rate__stars { gap: 2px; } .rate__stars em { font-size: .58rem; letter-spacing: 0; } }

/* finestrella email (computer) */
.mail-pop { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 9000; padding: 20px 22px 18px; border-radius: 24px; display: grid; gap: 10px; justify-items: center; text-align: center; width: min(92vw, 460px); animation: mailIn .35s var(--ease); }
.mail-pop__addr { margin: 0; font-size: 1.1rem; color: #fff; word-break: break-all; }
.mail-pop__ok { margin: 0; font-size: .82rem; color: var(--cyan); }
.mail-pop__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.mail-pop__row .btn { padding: 10px 16px; font-size: .9rem; }
.mail-pop__x { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: var(--text-2); font-size: 1.4rem; line-height: 1; cursor: pointer; }
@keyframes mailIn { from { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, transparent, rgba(3,12,38,.9) 30%); color: var(--text-2); padding: clamp(70px, 9vw, 120px) 0 30px; position: relative; overflow: hidden; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; position: relative; }
.foot-grid h4 { color: #fff; font-size: 1.05rem; letter-spacing: .04em; margin-bottom: 1em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .96rem; }
.foot-brand svg { width: 64px; height: 64px; margin-bottom: 14px; }
.foot-brand p { max-width: 34ch; }
.foot-bottom { position: relative; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; font-size: .85rem; color: var(--text-3); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.float-wa { position: fixed; right: 18px; bottom: 18px; z-index: 90; }
.float-wa .soc { width: 64px; height: 64px; }

/* ---------- Comparsa ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }
[data-magnetic] { transition: transform .5s var(--ease); }

/* ---------- Cursore liquid glass (piccolo) ---------- */
.lens, .lens-dot { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s; }
.has-lens .lens.on, .has-lens .lens-dot.on { opacity: 1; }
.lens { width: 0; height: 0; }
.lens__glass {
  position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%;
  -webkit-backdrop-filter: saturate(160%) brightness(1.1); backdrop-filter: saturate(160%) brightness(1.1);
  background: radial-gradient(60% 50% at 32% 22%, rgba(255,255,255,.45), rgba(255,255,255,0) 60%), radial-gradient(60% 40% at 60% 100%, rgba(103,214,255,.22), transparent 70%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -1.5px 3px rgba(103,214,255,.35), inset 0 0 0 1px rgba(255,255,255,.55), 0 6px 16px -4px rgba(0,0,0,.45);
  transition: transform .5s var(--ease), width .4s var(--ease), height .4s var(--ease), left .4s var(--ease), top .4s var(--ease);
}
.lens.big .lens__glass { width: 46px; height: 46px; left: -23px; top: -23px; }
/* bolla lente sulle scritte */
.lens__glass { overflow: hidden; isolation: isolate; }
.lens__mag { position: absolute; inset: 0; border-radius: 50%; opacity: 0; transition: opacity .25s; }
.lens.text .lens__glass { width: 118px; height: 118px; left: -59px; top: -59px;
  background: radial-gradient(circle at 50% 50%, rgba(6,26,79,.82), rgba(6,26,79,.9));
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%); }
.lens.text .lens__mag { opacity: 1; }
.lens__glass::after { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 2; pointer-events: none;
  background: radial-gradient(55% 40% at 32% 20%, rgba(255,255,255,.42), rgba(255,255,255,0) 70%), radial-gradient(70% 35% at 50% 105%, rgba(103,214,255,.28), transparent 70%);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,.95), inset 0 -2px 6px rgba(103,214,255,.35), inset 0 0 0 1px rgba(255,255,255,.55), inset 0 0 18px rgba(255,255,255,.12); }
.lens.text ~ .lens-dot { opacity: 0 !important; }
.lens.down .lens__glass { transform: scale(.82); }
.lens__label { position: absolute; left: 30px; top: -11px; padding: 3px 10px; border-radius: 999px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: .3s var(--ease);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lens.big .lens__label:not(:empty) { opacity: 1; transform: none; }
.lens-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px var(--cyan); }
.lens.big ~ .lens-dot { opacity: 0 !important; }
.has-lens, .has-lens a, .has-lens button, .has-lens summary, .has-lens label { cursor: none; }
.has-lens input, .has-lens textarea, .has-lens select { cursor: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
}
