/* ============ Pagine interne ============ */


/* ---------- Page hero ---------- */
.ph {
  position: relative; min-height: 92svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 150px var(--pad) clamp(40px, 6vw, 80px); overflow: hidden; isolation: isolate;
}
.ph__bg { position: absolute; inset: -10% 0 0; z-index: -2; background: var(--img) center/cover no-repeat; transform-origin: center; }
.ph::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,9,10,.55) 0%, rgba(7,9,10,.7) 45%, var(--bg) 100%), radial-gradient(60% 60% at 85% 10%, rgba(61,220,90,.22), transparent 70%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--green); }
.crumbs i { font-style: normal; color: var(--green); }
.ph__title { margin: 0; font: 900 clamp(34px, 8vw, 150px)/.92 var(--f-display); letter-spacing: -.04em; text-transform: uppercase; }
.ph__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.ph__title .split { display: inline; }
.ph__title .word { display: inline-block; white-space: nowrap; }
.ph__title .char { display: inline-block; }
.ph__lead { max-width: 720px; margin: 28px 0 0; font-size: clamp(17px, 1.7vw, 21px); color: #c4cdc6; }
.ph__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pill { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(7,9,10,.5); backdrop-filter: blur(8px); font-size: 12px; }
.pill b { color: var(--green); font-weight: 600; }

/* ---------- Subnav ---------- */
.subnav { position: sticky; top: 92px; z-index: 40; display: flex; justify-content: center; padding: 0 var(--pad); margin: 0 0 20px; pointer-events: none; }
.subnav__inner { pointer-events: auto; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(13,17,18,.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { position: relative; flex: none; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s, background .3s; white-space: nowrap; }
.subnav a:hover { color: var(--text); }
.subnav a.is-current { background: var(--green); color: #031207; }
@media (max-width: 960px) { .subnav { top: 78px; } .subnav a { padding: 9px 14px; font-size: 13px; } }

/* ---------- Layout blocks ---------- */
.block { padding: clamp(80px, 11vw, 160px) var(--pad); }
.block--tight { padding-top: clamp(40px, 6vw, 80px); }
.block--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.split2--rev > :first-child { order: 2; }
.split2--top { align-items: start; }
@media (max-width: 900px) { .split2 { grid-template-columns: 1fr; } .split2--rev > :first-child { order: 0; } }
.prose p { margin: 0 0 1.2em; color: #b9c3bb; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose .big { font-size: clamp(20px, 2vw, 28px); line-height: 1.45; color: var(--text); font-weight: 500; }
.h3 { margin: 0 0 22px; font: 800 clamp(26px, 3.2vw, 46px)/1.05 var(--f-display); letter-spacing: -.02em; }
.kicker { color: var(--green); margin: 0 0 16px; display: block; }

/* ---------- Images ---------- */
.frame { position: relative; border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.frame img { width: 100%; height: 115%; object-fit: cover; display: block; will-change: transform; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 10; }
.frame--sq { aspect-ratio: 1; }
.frame figcaption { position: absolute; left: 16px; bottom: 16px; }
.frame.zoomable { cursor: zoom-in; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo .frame:nth-child(2) { margin-top: 60px; }

/* ---------- Big quote ---------- */
.bigquote { margin: 0; font: 800 clamp(32px, 5.6vw, 92px)/1.02 var(--f-display); letter-spacing: -.035em; max-width: 1300px; }
.bigquote .w > span { display: inline-block; }
.bigquote .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }

/* ---------- Stats strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.strip > div { padding: 30px 24px; display: grid; gap: 6px; }
.strip > div + div { border-left: 1px solid var(--line); }
.strip b { font: 800 clamp(32px, 4vw, 60px)/1 var(--f-display); }
.strip b.g { color: var(--green); }
.strip span { color: var(--muted); font-size: 14px; }
@media (max-width: 800px) { .strip { grid-template-columns: 1fr 1fr; } .strip > div:nth-child(3) { border-left: 0; } .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; background: none; border: 0; color: var(--text); cursor: pointer; text-align: left; font: 700 clamp(20px, 2.2vw, 30px)/1.15 var(--f-display); }
.acc__btn small { color: var(--green); margin-right: 16px; }
.acc__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: currentColor; transition: transform .4s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon { background: var(--green); border-color: var(--green); color: #031207; transform: rotate(180deg); }
.acc__item.is-open .acc__icon::after { transform: rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { margin: 0 0 28px; color: #b9c3bb; line-height: 1.75; max-width: 760px; }

/* ---------- Offer cards (3) ---------- */
.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.offer .card { min-height: 280px; }
.offer .card b { position: absolute; top: 26px; right: 28px; font: 900 clamp(34px, 3.4vw, 54px)/1 var(--f-display); color: var(--green); }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } }

/* ---------- Steps (Affiliazione) ---------- */
.steps-wrap { position: relative; }
.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 64px; counter-reset: s; display: grid; gap: 10px; }
.steps::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.steps__line { position: absolute; left: 21px; top: 10px; width: 2px; height: calc(100% - 20px); background: linear-gradient(var(--green), var(--lime)); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 14px var(--green); }
.steps li { position: relative; counter-increment: s; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color .4s, background .4s; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: -64px; top: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); font: 600 12px var(--f-mono); color: var(--muted); transition: all .4s; }
.steps li.is-on { border-color: rgba(61,220,90,.35); background: #111b14; }
.steps li.is-on::before { background: var(--green); border-color: var(--green); color: #031207; box-shadow: 0 0 20px var(--glow); }
.steps h4 { margin: 0; font: 700 17px/1.3 var(--f-display); }
.steps p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Service lists ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc__col { padding: clamp(24px, 3vw, 40px); border-radius: 26px; border: 1px solid var(--line); background: var(--surface); }
.svc__col h3 { margin: 0 0 20px; font: 800 clamp(26px, 3vw, 40px)/1 var(--f-display); display: flex; justify-content: space-between; align-items: baseline; }
.svc__col h3 span { font: 600 12px var(--f-mono); color: var(--green); }
.svc__col ul { list-style: none; padding: 0; margin: 0; }
.svc__col li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); color: #c4cdc6; font-size: 15px; transition: color .3s, padding .4s var(--ease); }
.svc__col li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--green); transform: rotate(45deg); }
.svc__col li:hover { color: var(--text); padding-left: 8px; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 3vw, 40px); border-radius: 28px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.price--hot { background: linear-gradient(160deg, #173a20, #0b1a10); border-color: rgba(61,220,90,.45); }
.price h3 { margin: 0; font: 900 clamp(34px, 3.6vw, 56px)/1 var(--f-display); letter-spacing: -.03em; }
.price .from { color: var(--muted); }
.price .amount { font: 800 clamp(30px, 3vw, 46px)/1 var(--f-display); color: var(--green); }
.price .amount small { font-size: .4em; color: var(--muted); font-weight: 600; }
.price ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.price li { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.price li b { color: var(--text); font-weight: 600; text-align: right; }
.price .btn { margin-top: auto; align-self: flex-start; }
.price .badge { align-self: flex-start; }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- Format detail ---------- */
.fx { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.fx--rev .fx__media { order: 2; }
.fx__media { position: sticky; top: 160px; display: grid; gap: 14px; }
.fx__media .frame:first-child { aspect-ratio: 4 / 3; }
.fx__media .frame:nth-child(2) { aspect-ratio: 16 / 9; width: 78%; justify-self: end; margin-top: -90px; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.fx__label { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.fx__label .num { font: 400 20px 'Aldrich', sans-serif; color: var(--green); }
.fx__name { margin: 0; font: 900 clamp(60px, 10vw, 170px)/.86 var(--f-display); letter-spacing: -.05em; text-transform: uppercase; }
.fx__invest { display: inline-flex; align-items: baseline; gap: 12px; margin: 26px 0; padding: 16px 22px; border-radius: 18px; background: rgba(61,220,90,.1); border: 1px solid rgba(61,220,90,.35); }
.fx__invest span { color: var(--muted); }
.fx__invest b { font: 800 clamp(24px, 2.6vw, 36px)/1 var(--f-display); color: var(--green); }
.fx__invest small { color: var(--muted); }
.fx__incl { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx__incl li { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: #c4cdc6; display: grid; gap: 4px; }
.fx__incl li b { font: 700 15px var(--f-display); color: var(--text); }
.fx__incl svg { width: 20px; height: 20px; color: var(--green); margin-bottom: 4px; }
@media (max-width: 960px) {
  .fx { grid-template-columns: 1fr; }
  .fx--rev .fx__media { order: 0; }
  .fx__media { position: relative; top: 0; }
}
@media (max-width: 520px) { .fx__incl { grid-template-columns: 1fr; } }
.divider { height: 1px; margin: 0 var(--pad); background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* ---------- Compare table ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font: 800 clamp(18px, 2vw, 28px)/1 var(--f-display); background: var(--surface); }
.compare thead th:first-child { font: 600 12px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.compare tbody th { font-weight: 600; color: var(--muted); font-size: 14px; width: 26%; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr:hover td { background: rgba(61,220,90,.05); }
.compare td.hl, .compare th.hl { background: rgba(61,220,90,.08); }
.compare .yes { color: var(--green); font-weight: 700; }
.table-wrap { overflow-x: auto; border-radius: 24px; }
.table-wrap .compare { min-width: 640px; }

/* ---------- Horizontal gallery ---------- */
.hg { position: relative; }
.hg__track { display: flex; gap: 16px; overflow-x: auto; padding: 0 var(--pad) 20px; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.hg__track::-webkit-scrollbar { display: none; }
.hg__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.hg__track.is-drag * { pointer-events: none; }
.hg__item { flex: 0 0 clamp(280px, 42vw, 680px); aspect-ratio: 16 / 10; scroll-snap-align: start; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); position: relative; }
.hg__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.hg__item:hover img { transform: scale(1.05); }
.hg__item span { position: absolute; left: 14px; bottom: 14px; }
.hg__bar { display: flex; align-items: center; gap: 20px; padding: 10px var(--pad) 0; }
.hg__progress { flex: 1; height: 2px; background: var(--line); }
.hg__progress span { display: block; height: 100%; background: var(--green); width: 0; }
.hg__btns { display: flex; gap: 8px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.round:hover { background: var(--green); color: #031207; border-color: var(--green); }
.round svg { width: 20px; height: 20px; stroke-width: 2; }

/* ---------- Portrait grid ---------- */
.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quad .frame { aspect-ratio: 2 / 3; }
.quad .frame:nth-child(even) { margin-top: 50px; }
@media (max-width: 900px) { .quad { grid-template-columns: 1fr 1fr; } }

/* ---------- Video facade ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #000 var(--img) center/cover; cursor: pointer; }
.video::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.7)); transition: opacity .4s; }
.video__play { position: absolute; left: 50%; top: 50%; width: clamp(80px, 9vw, 120px); height: clamp(80px, 9vw, 120px); margin: calc(clamp(80px, 9vw, 120px) / -2) 0 0 calc(clamp(80px, 9vw, 120px) / -2); border-radius: 50%; background: var(--green); color: #031207; display: grid; place-items: center; box-shadow: 0 0 0 0 var(--glow); animation: ping 2.2s infinite; transition: transform .5s var(--ease); }
.video:hover .video__play { transform: scale(1.1); }
.video__play svg { width: 34%; height: 34%; fill: currentColor; stroke: none; margin-left: 6%; }
.video__cap { position: absolute; left: 24px; bottom: 22px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Process timeline (Realizzazione) ---------- */
.proc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.proc a { position: relative; padding: 26px 20px 26px 0; display: grid; gap: 10px; transition: color .3s; }
.proc a + a { padding-left: 20px; border-left: 1px solid var(--line); }
.proc a::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.proc a:hover::before, .proc a.is-on::before { transform: scaleX(1); }
.proc b { font: 400 30px/1 'Aldrich', sans-serif; color: var(--green); }
.proc span { font: 700 17px/1.2 var(--f-display); }
@media (max-width: 900px) { .proc { grid-template-columns: 1fr 1fr; } .proc a:nth-child(odd) { border-left: 0; padding-left: 0; } .proc a { border-top: 1px solid var(--line); } }

/* ---------- Next pages ---------- */
.next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.next a { position: relative; min-height: 300px; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; border: 1px solid var(--line); isolation: isolate; }
.next a::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center/cover; transition: transform 1s var(--ease); }
.next a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 20%, rgba(7,9,10,.95)); transition: background .5s; }
.next a:hover::before { transform: scale(1.08); }
.next a:hover::after { background: linear-gradient(rgba(31,168,59,.2), rgba(7,9,10,.95)); }
.next h3 { margin: 6px 0 0; font: 800 clamp(26px, 2.6vw, 38px)/1 var(--f-display); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.next h3 svg { width: 30px; height: 30px; color: var(--green); transition: transform .5s var(--ease); }
.next a:hover h3 svg { transform: translate(4px, -4px); }
@media (max-width: 900px) { .next { grid-template-columns: 1fr; } .next a { min-height: 220px; } }

/* ---------- CTA band ---------- */
.ctaband { position: relative; margin: 0 var(--pad); padding: clamp(40px, 7vw, 100px); border-radius: 36px; overflow: hidden; background: var(--green); color: #031207; isolation: isolate; }
.ctaband::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(-45deg, transparent 0 24px, rgba(0,0,0,.05) 24px 25px), radial-gradient(60% 80% at 100% 0%, var(--lime), transparent 70%); }
.ctaband h2 { margin: 0; font: 900 clamp(36px, 6.4vw, 104px)/.95 var(--f-display); letter-spacing: -.04em; max-width: 1000px; }
.ctaband p { max-width: 560px; font-size: 18px; margin: 22px 0 32px; color: #0b3b17; }
.ctaband .btn { background: #031207; color: var(--text); }
.ctaband .btn::before { background: #0f2a16; }
.ctaband .btn--ghost { background: transparent; color: #031207; box-shadow: inset 0 0 0 1px rgba(3,18,7,.4); }
.ctaband .btn--ghost::before { background: rgba(3,18,7,.08); }
.ctaband__row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 30px; background: rgba(5,7,8,.92); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .4s; }
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb img { max-width: 100%; max-height: 88vh; border-radius: 18px; transform: scale(.94); transition: transform .5s var(--ease); }
.lb.is-open img { transform: scale(1); }
.lb button { position: absolute; top: 20px; right: 20px; }

/* ---------- Reveals ---------- */
[data-reveal] { will-change: transform, opacity; }
.no-js [data-reveal] { opacity: 1; }

.sticky-col { position: sticky; top: 170px; }
@media (max-width: 900px) { .sticky-col { position: relative; top: 0; } }
