/* ============================================================
   SOLAVIA STUDIO — Home: "ogni sito è un'alba"
   ============================================================ */

/* ── Tema dinamico: la pagina passa da notte ad alba a giorno ── */
html { background: #000B28; }
body.home {
  --bg: #000B28;
  --fg: #EAE3D3;
  --fg-2: #9AA6C0;
  --card: #0A1838;
  --card-2: rgba(255, 255, 255, .035);
  --line: rgba(230, 203, 142, .14);
  --accent: #E6CB8E;
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, .8);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --gut: clamp(20px, 5vw, 64px);
  background-color: var(--bg);
  color: var(--fg);
  overflow-x: clip;
  transition: background-color .9s cubic-bezier(.4, 0, .2, 1), color .9s cubic-bezier(.4, 0, .2, 1);
}
body.home[data-theme="dawn"] {
  --bg: #1C1331;
  --fg: #F4EADC;
  --fg-2: #C3B3C6;
  --card: #281B42;
  --card-2: rgba(255, 255, 255, .045);
  --line: rgba(240, 220, 166, .16);
  --accent: #F0DCA6;
}
body.home[data-theme="day"] {
  --bg: #F5EFE3;
  --fg: #16203A;
  --fg-2: #5B6478;
  --card: #FFFFFF;
  --card-2: #FBF7EF;
  --line: rgba(22, 32, 58, .1);
  --accent: #7E6131;
  --shadow: 0 24px 60px -36px rgba(22, 32, 58, .35);
}

/* ── Base ── */
.h-wrap { width: min(1240px, calc(100% - var(--gut) * 2)); margin-inline: auto; }
.h-sec { position: relative; padding-block: clamp(96px, 12vw, 176px); }

.h-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font: 700 12px/1.2 'Mulish', sans-serif;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color .9s;
}
.h-eyebrow::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 16%, transparent), 0 0 16px currentColor;
}

.h-title {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(42px, 5.8vw, 88px);
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h-title em, .h-hero__title em, .h-contact__title em, .h-work--cta h3 em {
  font-style: italic;
  font-weight: 500;
  padding-right: .05em;
  margin-right: -.03em;
  background: linear-gradient(100deg, #F0DCA6 0%, #C9A86A 48%, #CE9A95 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.home[data-theme="day"] .h-title em {
  background-image: linear-gradient(100deg, #A9823F 0%, #7E6131 55%, #A8706A 100%);
}
.h-lead {
  margin: 0;
  max-width: 540px;
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.7;
  color: var(--fg-2);
  transition: color .9s;
}
.h-head {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 84px);
}
.h-head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.h-head--center .h-lead { margin-inline: auto; }

.h-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid rgba(230, 203, 142, .34);
  color: var(--gold-light);
  font: 800 14.5px/1 'Mulish', sans-serif;
  transition: background-color .3s, border-color .3s;
}
.h-btn-ghost:hover { background: rgba(230, 203, 142, .1); border-color: var(--gold-light); }
.h-btn-ghost svg, .h-link svg, .h-btn-line svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.h-btn-ghost:hover svg, a:hover .h-link svg, .h-link:hover svg, .h-btn-line:hover svg { transform: translateX(4px); }
.h-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 14px/1 'Mulish', sans-serif;
  letter-spacing: .02em;
  color: var(--accent);
}
.home .btn { height: 54px; padding: 0 28px; }
.home .btn svg { width: 19px; height: 19px; flex: none; }
.ico { width: 20px; height: 20px; flex: none; }

/* Varianti di comparsa */
[data-reveal="blur"] { filter: blur(12px); transition: opacity .9s, transform .9s cubic-bezier(.2,.7,.2,1), filter .9s; }
[data-reveal="blur"].revealed { filter: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="scale"].revealed { transform: none; }

/* ═══════════════════ LOADER (onde che entrano, sole che sorge) ═══════════════════ */
.h-loader { display: none; }
html.intro .h-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #000B28;
  animation: hLoaderOut .95s cubic-bezier(.77, 0, .18, 1) 2.15s forwards;
}
@keyframes hLoaderOut { to { transform: translateY(-100%); visibility: hidden; } }
.h-loader__art { width: min(380px, 74vw); overflow: visible; }
.h-loader__art path, .h-loader__art line {
  fill: none;
  stroke: #C9A86A;
  stroke-linecap: round;
  stroke-width: 2;
}
.h-loader__wave { stroke-dasharray: 1; stroke-dashoffset: 1; }
.h-loader__wave.w1 { animation: hDraw 1.1s cubic-bezier(.2,.7,.2,1) .1s forwards, hFromL 1.3s cubic-bezier(.2,.7,.2,1) .1s both; }
.h-loader__wave.w2 { animation: hDraw 1.1s cubic-bezier(.2,.7,.2,1) .28s forwards, hFromR 1.3s cubic-bezier(.2,.7,.2,1) .28s both; }
.h-loader__wave.w3 { animation: hDraw 1.1s cubic-bezier(.2,.7,.2,1) .44s forwards, hFromL 1.3s cubic-bezier(.2,.7,.2,1) .44s both; opacity: .7; }
.h-loader__sunwrap { animation: hSunUp 1.4s cubic-bezier(.2,.7,.2,1) .5s both; }
.h-loader__sun {
  stroke: #F0DCA6 !important;
  stroke-width: 2.4 !important;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 10px rgba(240, 220, 166, .65));
  animation: hDraw 1s cubic-bezier(.2,.7,.2,1) .5s forwards;
}
.h-loader__rays line {
  stroke: #F0DCA6;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: hRay .5s cubic-bezier(.2,.7,.2,1) forwards;
}
.h-loader__rays line:nth-child(1) { animation-delay: 1.15s; }
.h-loader__rays line:nth-child(2) { animation-delay: 1.21s; }
.h-loader__rays line:nth-child(3) { animation-delay: 1.27s; }
.h-loader__rays line:nth-child(4) { animation-delay: 1.33s; }
.h-loader__rays line:nth-child(5) { animation-delay: 1.39s; }
.h-loader__rays line:nth-child(6) { animation-delay: 1.45s; }
.h-loader__rays line:nth-child(7) { animation-delay: 1.51s; }
.h-loader__word {
  margin: 0;
  font: 500 30px/1 'Cormorant Garamond', serif;
  letter-spacing: .12em;
  color: #E6CB8E;
  opacity: 0;
  animation: hFadeUp .8s cubic-bezier(.2,.7,.2,1) 1.3s forwards;
}
.h-loader__word em { font-style: italic; color: #EAE3D3; }
@keyframes hDraw { to { stroke-dashoffset: 0; } }
@keyframes hFromL { from { transform: translateX(-36px); } to { transform: none; } }
@keyframes hFromR { from { transform: translateX(36px); } to { transform: none; } }
@keyframes hSunUp { from { transform: translateY(48px); } to { transform: none; } }
@keyframes hRay { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes hFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ═══════════════════ HERO: il sole sorge con lo scroll ═══════════════════ */
.h-hero { position: relative; height: 180vh; }
.h-hero__stage {
  --p: 0;
  --sun-x: 68%;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
}
.h-sky { position: absolute; inset: 0; z-index: -4; pointer-events: none; }
.h-sky__dawn {
  position: absolute;
  inset: 0;
  opacity: calc(.2 + var(--p) * .8);
  background: linear-gradient(to top, rgba(206, 154, 149, .46) 0%, rgba(122, 84, 120, .24) 28%, rgba(0, 11, 40, 0) 60%);
}
.h-sky__glow {
  position: absolute;
  left: var(--sun-x);
  top: 80%;
  width: 130vmax;
  height: 84vmax;
  transform: translate(-50%, -50%);
  opacity: calc(.35 + var(--p) * .65);
  background: radial-gradient(closest-side, rgba(240, 220, 166, .36), rgba(206, 154, 149, .16) 45%, transparent 75%);
}
.h-hero .h-stars { z-index: -3; opacity: calc(1 - var(--p) * .78); }

.h-sun {
  position: absolute;
  z-index: -2;
  left: var(--sun-x);
  top: 79%;
  width: clamp(260px, 31vw, 480px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) translateY(calc(5vh - var(--p) * 24vh));
  will-change: transform;
  pointer-events: none;
}
.h-sun__in { position: absolute; inset: 0; animation: hSunIn 2.2s cubic-bezier(.2,.7,.2,1) .15s both; }
html.intro .h-sun__in { animation-delay: 2.35s; }
@keyframes hSunIn { from { transform: translateY(20vh); } to { transform: none; } }
.h-sun__halo {
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 220, 166, .5), rgba(240, 220, 166, .1) 55%, transparent 72%);
  animation: hBreath 6s ease-in-out infinite;
}
.h-sun__rays, .h-sun__disc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.h-sun__rays { animation: hSpin 100s linear infinite; opacity: .95; }
.h-sun__disc { filter: drop-shadow(0 0 28px rgba(240, 220, 166, .55)); }
@keyframes hBreath { 50% { transform: scale(1.07); opacity: .85; } }
@keyframes hSpin { to { transform: rotate(360deg); } }

.h-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 31vh; z-index: 0; pointer-events: none; }
.h-wave-wrap { position: absolute; inset: 0; overflow: hidden; }
.h-wave-wrap--1 { z-index: 1; transform: translateY(calc(var(--p) * -1.4vh)); }
.h-wave-wrap--2 { z-index: 3; transform: translateY(calc(var(--p) * 1.6vh)); }
.h-wave-wrap--3 { z-index: 4; transform: translateY(calc(var(--p) * 3.4vh)); }
.h-wave-wrap--4 { z-index: 5; transform: translateY(calc(var(--p) * 4.4vh)); }
.h-wave { position: absolute; left: 0; bottom: 0; width: 150%; height: 100%; animation: hWave 20s linear infinite; will-change: transform; }
.h-wave svg { display: block; width: 100%; height: 100%; overflow: visible; }
.h-wave-wrap--2 .h-wave { animation-name: hWave2; animation-duration: 15s; animation-direction: reverse; }
.h-wave-wrap--3 .h-wave { animation-name: hWave3; animation-duration: 10s; }
.h-wave-wrap--4 .h-wave { animation-name: hWave4; animation-duration: 13s; animation-direction: reverse; }
@keyframes hWave { to { transform: translateX(-33.3333%); } }
@keyframes hWave2 { to { transform: translateX(-25%); } }
@keyframes hWave3 { to { transform: translateX(-20%); } }
@keyframes hWave4 { to { transform: translateX(-16.6667%); } }
.h-wave .fill { stroke: none; }
.h-wave .line { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.h-wave-wrap--1 .fill { fill: #0A1A47; }
.h-wave-wrap--1 .line { stroke: rgba(201, 168, 106, .5); }
.h-wave-wrap--2 .fill { fill: #051340; }
.h-wave-wrap--2 .line { stroke: rgba(201, 168, 106, .75); }
.h-wave-wrap--3 .fill { fill: #000B28; }
.h-wave-wrap--3 .line { stroke: #E6CB8E; }
.h-wave-wrap--4 .line { stroke: rgba(230, 203, 142, .28); }

.h-glints {
  position: absolute;
  z-index: 6;
  left: var(--sun-x);
  top: 33%;
  bottom: 0;
  width: 300px;
  transform: translateX(-50%);
  opacity: calc(.12 + var(--p) * .88);
  mix-blend-mode: screen;
}
.h-glints i {
  position: absolute;
  left: 50%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #F0DCA6, transparent);
  transform: translateX(-50%);
  animation: hGlint 2.6s ease-in-out infinite alternate;
}
.h-glints i:nth-child(1) { top: 3%; width: 150px; }
.h-glints i:nth-child(2) { top: 12%; width: 104px; margin-left: 14px; animation-delay: -.6s; }
.h-glints i:nth-child(3) { top: 22%; width: 176px; margin-left: -10px; animation-delay: -1.1s; }
.h-glints i:nth-child(4) { top: 33%; width: 92px; margin-left: 22px; animation-delay: -1.7s; }
.h-glints i:nth-child(5) { top: 45%; width: 200px; margin-left: -18px; animation-delay: -.3s; opacity: .7; }
.h-glints i:nth-child(6) { top: 57%; width: 120px; margin-left: 30px; animation-delay: -2.1s; }
.h-glints i:nth-child(7) { top: 69%; width: 230px; margin-left: -26px; animation-delay: -1.4s; }
.h-glints i:nth-child(8) { top: 81%; width: 140px; margin-left: 12px; animation-delay: -.9s; }
.h-glints i:nth-child(9) { top: 92%; width: 260px; animation-delay: -2.4s; }
@keyframes hGlint { from { opacity: .15; } to { opacity: .9; } }

.h-hero__content {
  position: absolute;
  z-index: 5;
  left: 0; right: 0;
  top: 43%;
  transform: translateY(calc(-50% - var(--p) * 6vh));
  opacity: calc(1 - max(0, (var(--p) - .5) * 2.6));
}
.h-hero__content .h-wrap > * { max-width: 760px; }
.h-hero .h-eyebrow { color: var(--gold-light); }
.h-hero__title {
  margin: 0 0 26px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(50px, 7.7vw, 120px);
  line-height: .9;
  letter-spacing: -.035em;
  color: #F4EADC;
}
.h-line { display: block; overflow: hidden; padding: .02em 0 .12em; margin-bottom: -.12em; }
.h-line > .h-anim { display: inline-block; }
.h-rotator {
  display: inline-block;
  font-style: italic;
  font-weight: 500;
  color: var(--gold-light);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s, filter .4s;
}
.h-rotator.is-out { transform: translateY(-45%); opacity: 0; filter: blur(8px); }
.h-rotator.is-in { transform: translateY(45%); opacity: 0; filter: blur(8px); transition: none; }
.h-dot { color: var(--gold); }
.h-hero__sub {
  margin: 0 0 34px;
  max-width: 520px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  color: rgba(234, 227, 211, .8);
}
.h-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.h-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 600 12.5px/1.4 'Mulish', sans-serif;
  letter-spacing: .06em;
  color: rgba(234, 227, 211, .64);
}
.h-trust li { display: flex; align-items: center; gap: 9px; }
.h-trust li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* entrata hero */
.h-anim { opacity: 0; transform: translateY(28px); animation: hUp 1.05s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
.h-line > .h-anim { transform: translateY(108%); }
html.intro .h-anim { animation-delay: calc(var(--d, 0s) + 2.25s); }
@keyframes hUp { to { opacity: 1; transform: none; } }

.h-scrollhint {
  position: absolute;
  z-index: 6;
  left: var(--gut);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font: 700 11px/1 'Mulish', sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(234, 227, 211, .7);
  opacity: calc(1 - var(--p) * 6);
}
.h-scrollhint__line { position: relative; width: 1px; height: 46px; overflow: hidden; background: rgba(234, 227, 211, .22); }
.h-scrollhint__line::after {
  content: '';
  position: absolute;
  left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--gold-light);
  animation: hDrip 1.9s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes hDrip { to { top: 100%; } }
.h-coords {
  position: absolute;
  z-index: 6;
  right: var(--gut);
  top: 22%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 700 10.5px/1 'Mulish', sans-serif;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(234, 227, 211, .42);
}

/* ═══════════════════ MANIFESTO ═══════════════════ */
.h-manifesto { overflow: hidden; }
.h-manifesto::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 42vh;
  background: linear-gradient(#000B28, rgba(0, 11, 40, 0));
  pointer-events: none;
}
.h-manifesto::after {
  content: '';
  position: absolute;
  right: -20vw; bottom: -30vh;
  width: 80vw; height: 80vh;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(206, 154, 149, .28), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s;
}
body[data-theme="dawn"] .h-manifesto::after { opacity: 1; }
.h-manifesto .h-wrap { position: relative; z-index: 1; }
.h-manifesto__quote {
  margin: 0;
  max-width: 1160px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(36px, 5.7vw, 86px);
  line-height: 1.07;
  letter-spacing: -.018em;
}
.h-manifesto__quote .w { opacity: .15; transition: opacity .45s, color .45s; }
.h-manifesto__quote .w.on { opacity: 1; }
.h-manifesto__quote .w.hl {
  font-style: italic;
  background: linear-gradient(100deg, #F0DCA6, #C9A86A 50%, #CE9A95);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-manifesto__foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px 80px;
  align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.h-manifesto__foot .h-lead { justify-self: end; }
.h-sign { display: flex; align-items: center; gap: 14px; }
.h-sign img { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(240, 220, 166, .3); }
.h-sign strong { display: block; font: 600 22px/1.15 'Cormorant Garamond', serif; }
.h-sign span { font-size: 13px; color: var(--fg-2); }

/* ═══════════════════ MARQUEE ═══════════════════ */
.h-marquee {
  --skew: 0deg;
  position: relative;
  padding: clamp(26px, 4vw, 46px) 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  transform: skewY(var(--skew));
  transition: border-color .9s;
}
.h-marquee__row { overflow: hidden; white-space: nowrap; }
.h-marquee__track { display: inline-flex; will-change: transform; }
.h-marquee__group { display: inline-flex; align-items: center; gap: clamp(22px, 3vw, 44px); padding-right: clamp(22px, 3vw, 44px); }
.h-marquee__row--big span {
  font: 600 clamp(44px, 7vw, 108px)/1.08 'Cormorant Garamond', serif;
  letter-spacing: -.02em;
}
.h-marquee__row--big span.o { font-style: italic; font-weight: 500; color: transparent; -webkit-text-stroke: 1.2px var(--fg); }
.h-marquee__row--big svg { flex: none; width: clamp(22px, 2.6vw, 38px); height: clamp(22px, 2.6vw, 38px); color: var(--accent); }
.h-marquee__row--small { margin-top: 12px; }
.h-marquee__row--small span { font: 700 12.5px/1 'Mulish', sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--fg-2); }
.h-marquee__row--small svg { flex: none; width: 12px; height: 12px; color: var(--accent); }

/* ═══════════════════ SERVIZI: bento ═══════════════════ */
.h-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.h-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: opacity .8s, transform .6s var(--ease-out), background-color .9s, border-color .9s, box-shadow .5s;
}
.h-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 168, 106, .17), transparent 62%);
}
.h-card:hover::before { opacity: 1; }
.h-card.revealed:hover { transform: translateY(-5px); }
.h-card--web { grid-column: span 7; }
.h-card--social { grid-column: span 5; }
.h-card--care { grid-column: span 12; flex-direction: row; align-items: center; }
.h-card__visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 210px; padding: 26px 26px 0; }
.h-card__body { padding: 24px 30px 30px; }
.h-card h3 { margin: 0 0 10px; font: 600 clamp(25px, 2.2vw, 32px)/1.1 'Cormorant Garamond', serif; }
.h-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--fg-2); transition: color .9s; }
.h-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.h-tags li { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font: 700 12px/1 'Mulish', sans-serif; color: var(--fg); }
.h-card:not(.revealed) * { animation-play-state: paused !important; }

/* mockup: browser */
.mock-browser {
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  overflow: hidden;
  background: #0A1838;
  border: 1px solid rgba(230, 203, 142, .18);
  box-shadow: 0 30px 60px -32px rgba(0, 11, 40, .6);
}
.mock-browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #081430; }
.mock-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #CE9A95; }
.mock-browser__bar i:nth-child(2) { background: #E6CB8E; }
.mock-browser__bar i:nth-child(3) { background: #5B6478; }
.mock-browser__bar span { margin-left: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); font: 600 10.5px/1 'Mulish', sans-serif; color: #9AA6C0; }
.mock-browser__screen {
  position: relative;
  height: 236px;
  padding: 24px;
  overflow: hidden;
  background: radial-gradient(110% 90% at 85% 115%, rgba(206, 154, 149, .4), transparent 60%), #000B28;
}
.mb-sun {
  position: absolute;
  right: 40px; bottom: 52px;
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 2px solid #F0DCA6;
  background: radial-gradient(circle at 50% 40%, rgba(240, 220, 166, .7), rgba(201, 168, 106, .2));
  box-shadow: 0 0 40px rgba(240, 220, 166, .45);
  animation: mbSun 6s cubic-bezier(.4, 0, .2, 1) infinite;
}
.mb-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: #000B28; border-top: 2px solid #C9A86A; border-radius: 50% 50% 0 0 / 22px 22px 0 0; }
.mb-l { display: block; height: 11px; border-radius: 6px; background: rgba(234, 227, 211, .9); transform-origin: 0 50%; margin-bottom: 10px; animation: mbType 6s cubic-bezier(.4, 0, .2, 1) infinite; }
.mb-l--xl { width: 58%; height: 16px; }
.mb-l--m { width: 40%; opacity: .45; animation-delay: .25s; }
.mb-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F0DCA6, #C9A86A);
  font: 800 11px/1 'Mulish', sans-serif;
  color: #1A1306;
  animation: mbPress 6s infinite;
}
.mb-cursor { position: absolute; width: 20px; height: 20px; left: 0; top: 0; color: #FBF7EF; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); animation: mbCursor 6s cubic-bezier(.5, 0, .2, 1) infinite; }
@keyframes mbSun { 0%, 15% { transform: translateY(40px); } 55%, 100% { transform: none; } }
@keyframes mbType { 0%, 10% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
@keyframes mbPress { 0%, 66% { transform: none; box-shadow: none; } 70% { transform: scale(.9); box-shadow: 0 0 0 6px rgba(240, 220, 166, .3); } 76%, 100% { transform: none; box-shadow: 0 0 0 14px rgba(240, 220, 166, 0); } }
@keyframes mbCursor { 0%, 30% { transform: translate(330px, 210px); opacity: 0; } 38% { opacity: 1; } 64% { transform: translate(78px, 92px); } 70% { transform: translate(78px, 92px) scale(.85); } 76% { transform: translate(78px, 92px); } 90% { opacity: 1; } 100% { transform: translate(90px, 120px); opacity: 0; } }

/* mockup: telefono social */
.mock-phone {
  position: relative;
  width: 172px;
  height: 300px;
  border-radius: 32px;
  border: 6px solid #16203A;
  background: #000B28;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(0, 11, 40, .7);
}
.mock-phone::before { content: ''; position: absolute; z-index: 2; top: 8px; left: 50%; width: 52px; height: 14px; margin-left: -26px; border-radius: 999px; background: #16203A; }
.mp-feed { position: absolute; left: 10px; right: 10px; top: 28px; display: flex; flex-direction: column; gap: 10px; animation: mpFeed 12s linear infinite; }
.mp-post { position: relative; height: 128px; flex: none; border-radius: 16px; background: linear-gradient(140deg, var(--a), var(--b)); }
.mp-post::after { content: ''; position: absolute; left: 10px; bottom: 10px; width: 46%; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .7); }
.mp-post svg { position: absolute; right: 10px; bottom: 8px; width: 14px; height: 14px; color: #FBF7EF; }
.mp-hearts { position: absolute; right: calc(50% - 132px); bottom: 70px; width: 40px; height: 160px; pointer-events: none; }
.mp-hearts svg { position: absolute; bottom: 0; left: 8px; width: 18px; height: 18px; color: #CE9A95; opacity: 0; animation: mpHeart 3.2s ease-out infinite; }
.mp-hearts svg:nth-child(2) { left: 2px; width: 14px; color: #E6CB8E; animation-delay: 1.1s; }
.mp-hearts svg:nth-child(3) { left: 16px; width: 12px; animation-delay: 2.1s; }
.h-card--social .h-card__visual { min-height: 330px; }
@keyframes mpFeed { to { transform: translateY(-50%); } }
@keyframes mpHeart { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-140px) translateX(-12px) scale(1.1); } }

/* mockup: ricerca */
.mock-search { width: 100%; max-width: 320px; }
.ms-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  font: 600 13.5px/1 'Mulish', sans-serif;
  color: var(--fg);
}
.ms-bar svg { width: 16px; height: 16px; color: var(--fg-2); flex: none; }
.ms-type { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; padding-right: 1px; border-right: 2px solid var(--accent); animation: msType 7s steps(18) infinite, caret .8s step-end infinite; }
.ms-res { margin-top: 12px; display: grid; gap: 8px; }
.ms-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid transparent; opacity: 0; animation: msRow 7s infinite; }
.ms-row i { display: block; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--fg) 14%, transparent); }
.ms-row.is-you { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.ms-row.is-you b { font: 800 12.5px/1 'Mulish', sans-serif; color: var(--fg); }
.ms-row.is-you small { margin-left: auto; font-size: 11px; letter-spacing: .1em; color: var(--accent); }
.ms-row:nth-child(2) { animation-delay: .15s; }
.ms-row:nth-child(3) { animation-delay: .3s; }
@keyframes msType { 0%, 8% { max-width: 0; } 34%, 92% { max-width: 11em; } 100% { max-width: 0; } }
@keyframes caret { 50% { border-color: transparent; } }
@keyframes msRow { 0%, 40% { opacity: 0; transform: translateY(8px); } 48%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* mockup: mappa */
.mock-map {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 170px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, .85) 46.5%, rgba(255, 255, 255, .85) 50%, transparent 50.5%),
    linear-gradient(20deg, transparent 62%, rgba(255, 255, 255, .7) 62.4%, rgba(255, 255, 255, .7) 65%, transparent 65.4%),
    repeating-linear-gradient(0deg, rgba(22, 32, 58, .05) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(22, 32, 58, .05) 0 1px, transparent 1px 28px),
    #E9DFCB;
  border: 1px solid var(--line);
}
.mock-map__sea { position: absolute; left: -10%; right: -10%; bottom: -40px; height: 70px; border-radius: 50%; background: #C6D3DC; }
.mock-map__pin { position: absolute; left: 52%; top: 22%; width: 34px; height: 34px; margin-left: -17px; color: #7E6131; animation: pinBounce 2.4s cubic-bezier(.3, 0, .3, 1) infinite; }
.mock-map__pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 16px; height: 5px; margin-left: -8px; border-radius: 50%; background: rgba(22, 32, 58, .25); animation: pinShadow 2.4s cubic-bezier(.3, 0, .3, 1) infinite; }
.mock-map__card { position: absolute; left: 12px; bottom: 12px; padding: 9px 12px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 10px 26px -12px rgba(22, 32, 58, .4); font: 800 11.5px/1.3 'Mulish', sans-serif; color: #16203A; }
.mock-map__card span { display: block; color: #C9A86A; letter-spacing: .1em; }
@keyframes pinBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pinShadow { 50% { transform: scale(.6); opacity: .5; } }

/* mockup: testi */
.mock-copy { width: 100%; max-width: 320px; padding: 22px 22px 18px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); }
.mock-copy__line { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 0; padding-right: 2px; border-right: 2px solid var(--accent); font: italic 500 23px/1.25 'Cormorant Garamond', serif; color: var(--fg); animation: mcType 6s steps(21) infinite, caret .8s step-end infinite; }
.mock-copy small { display: block; margin-top: 12px; font: 700 10.5px/1 'Mulish', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); }
@keyframes mcType { 0%, 6% { max-width: 0; } 46%, 90% { max-width: 12em; } 100% { max-width: 0; } }

/* manutenzione */
.h-card--care .h-card__body { flex: 1.2; padding: 34px 38px; }
.h-card--care .h-care-visual { flex: 1; display: flex; align-items: center; gap: 34px; padding: 34px 38px 34px 0; }
.mock-toggles { flex: 1; display: grid; gap: 12px; }
.mock-toggles span { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); font: 700 13px/1 'Mulish', sans-serif; color: var(--fg); }
.mock-toggles b { position: relative; flex: none; width: 36px; height: 20px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 16%, transparent); transition: background-color .4s; }
.mock-toggles b::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.h-card--care.revealed .mock-toggles b { background: #C9A86A; }
.h-card--care.revealed .mock-toggles b::after { transform: translateX(16px); }
.mock-toggles span:nth-child(1) b, .mock-toggles span:nth-child(1) b::after { transition-delay: .6s; }
.mock-toggles span:nth-child(2) b, .mock-toggles span:nth-child(2) b::after { transition-delay: .9s; }
.mock-toggles span:nth-child(3) b, .mock-toggles span:nth-child(3) b::after { transition-delay: 1.2s; }
.mock-toggles span:nth-child(4) b, .mock-toggles span:nth-child(4) b::after { transition-delay: 1.5s; }
.h-care-price { text-align: center; }
.h-care-price b { display: block; font: 600 clamp(60px, 6vw, 88px)/.9 'Cormorant Garamond', serif; letter-spacing: -.03em; color: var(--fg); }
.h-care-price span { font: 700 11.5px/1 'Mulish', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); }

/* numeri */
.h-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.h-stat { padding: 34px 24px 0 0; }
.h-stat + .h-stat { padding-left: 24px; border-left: 1px solid var(--line); }
.h-stat b { display: block; font: 600 clamp(56px, 6.8vw, 104px)/1 'Cormorant Garamond', serif; letter-spacing: -.03em; color: var(--fg); font-variant-numeric: lining-nums tabular-nums; }
.h-stat span { display: block; max-width: 210px; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--fg-2); }

/* ═══════════════════ METODO: scroll orizzontale ═══════════════════ */
.h-method { --k: 0; position: relative; }
.h-method__stage { padding-block: clamp(96px, 11vw, 150px); }
.h-method.is-horizontal .h-method__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 90px 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4.5vh;
  overflow: hidden;
}
.h-method__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.is-horizontal .h-method__head { margin-bottom: 0; }
.h-method__count { margin: 0; font: 700 13px/1 'Mulish', sans-serif; letter-spacing: .2em; color: var(--fg-2); white-space: nowrap; }
.h-method__num { font: 600 46px/1 'Cormorant Garamond', serif; letter-spacing: 0; color: var(--fg); }
.h-method__track { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.is-horizontal .h-method__track {
  display: flex;
  width: max-content;
  gap: 22px;
  padding-inline: max(var(--gut), calc((100vw - 1240px) / 2));
  will-change: transform;
}
.h-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-radius: 28px;
  background: var(--card-2);
  border: 1px solid var(--line);
  transition: opacity .6s, transform .7s var(--ease-out), background-color .9s, border-color .6s;
}
.is-horizontal .h-step { width: min(36vw, 480px); min-height: min(54vh, 450px); opacity: .45; transform: scale(.94); }
.is-horizontal .h-step.is-active {
  opacity: 1;
  transform: none;
  border-color: rgba(230, 203, 142, .4);
  background: linear-gradient(160deg, rgba(230, 203, 142, .1), rgba(255, 255, 255, .02));
}
.h-step__n {
  margin-bottom: auto;
  font: 600 clamp(92px, 9.4vw, 156px)/.82 'Cormorant Garamond', serif;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(230, 203, 142, .5);
  transition: -webkit-text-stroke-color .5s;
}
.h-step.is-active .h-step__n { -webkit-text-stroke-color: #F0DCA6; }
.h-step__icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 24px 0 18px; border-radius: 16px; background: rgba(230, 203, 142, .1); color: var(--gold-light); }
.h-step__icon svg { width: 24px; height: 24px; }
.h-step h3 { margin: 0 0 10px; font: 600 30px/1.1 'Cormorant Garamond', serif; }
.h-step p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--fg-2); }
.h-step--intro { justify-content: center; background: none; border-color: transparent; }
.is-horizontal .h-step--intro { opacity: 1; transform: none; width: min(30vw, 400px); }
.h-step--intro .h-lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--fg); }
.h-step__hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font: 700 11px/1 'Mulish', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.h-step__hint svg { width: 18px; height: 18px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.h-step--end {
  justify-content: center;
  align-items: flex-start;
  background: radial-gradient(120% 90% at 100% 100%, rgba(206, 154, 149, .22), transparent 60%), radial-gradient(90% 70% at 0% 0%, rgba(230, 203, 142, .14), transparent 60%), var(--card);
}
.h-step--end h3 { font-size: clamp(36px, 3.4vw, 52px); }
.h-step--end p { margin-bottom: 26px; }
.h-method__rail { position: relative; height: 1px; background: var(--line); }
.h-method__fill { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--k)); background: linear-gradient(90deg, #CE9A95, #F0DCA6); }
.h-method__sunDot {
  position: absolute;
  top: 50%;
  left: calc(var(--k) * 100%);
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #F0DCA6;
  box-shadow: 0 0 0 6px rgba(240, 220, 166, .16), 0 0 26px rgba(240, 220, 166, .85);
}
.h-method:not(.is-horizontal) .h-method__rail { display: none; }
.h-method:not(.is-horizontal) .h-method__track { position: relative; padding-left: 30px; }
.h-method:not(.is-horizontal) .h-method__track::before,
.h-method:not(.is-horizontal) .h-method__track::after { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.h-method:not(.is-horizontal) .h-method__track::after { transform-origin: 50% 0; transform: scaleY(var(--k)); background: linear-gradient(#CE9A95, #F0DCA6); }
.h-method:not(.is-horizontal) .h-step__n { font-size: 84px; }
.h-method:not(.is-horizontal) .h-step--intro { padding-inline: 0; }

/* ═══════════════════ LAVORI ═══════════════════ */
.h-feature {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  color: #F4EADC;
  background:
    radial-gradient(90% 120% at 100% 100%, rgba(206, 154, 149, .2), transparent 60%),
    radial-gradient(70% 90% at 0% 0%, rgba(230, 203, 142, .1), transparent 60%),
    #0A1838;
  border: 1px solid rgba(230, 203, 142, .16);
  clip-path: inset(calc(var(--c, 0) * 6%) calc(var(--c, 0) * 5%) round 32px);
}
.h-feature__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.h-feature h3 { margin: 20px 0 14px; font: 600 clamp(54px, 6.4vw, 100px)/.88 'Cormorant Garamond', serif; letter-spacing: -.03em; }
.h-feature p { margin: 0 0 24px; font-size: 16px; line-height: 1.65; color: rgba(234, 227, 211, .8); }
.h-feature .h-link { color: #F0DCA6; }
.h-feature__stage { position: relative; padding: 3% 0 11% 9%; }
.h-feature__browser {
  border-radius: 14px;
  overflow: hidden;
  background: #081430;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(230, 203, 142, .18);
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg) translateY(calc(var(--py, 0) * -24px));
  transform-origin: 30% 50%;
  transition: transform 1s var(--ease-out);
}
.h-feature:hover .h-feature__browser { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg) translateY(calc(var(--py, 0) * -24px)); }
.h-feature__browser img { display: block; width: 100%; height: auto; aspect-ratio: 1500 / 716; object-fit: cover; }
.h-feature__phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 25%;
  aspect-ratio: 560 / 1143;
  border-radius: 22px;
  border: 5px solid #16203A;
  overflow: hidden;
  background: #000B28;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9);
  transform: translateY(calc(var(--py, 0) * -60px)) rotate(-5deg);
  transition: transform 1s var(--ease-out);
}
.h-feature:hover .h-feature__phone { transform: translateY(calc(var(--py, 0) * -60px - 12px)) rotate(-2deg); }
.h-feature__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.h-feature__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(107, 216, 162, .1);
  border: 1px solid rgba(107, 216, 162, .3);
  font: 800 11px/1.2 'Mulish', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9BE6C0;
}
.h-feature__badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6BD8A2; box-shadow: 0 0 0 0 rgba(107, 216, 162, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(107, 216, 162, 0); } 100% { box-shadow: 0 0 0 0 rgba(107, 216, 162, 0); } }
.h-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font: 700 11.5px/1.2 'Mulish', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(230, 203, 142, .14);
  border: 1px solid rgba(230, 203, 142, .32);
  color: #E6CB8E;
}
.h-pill--rose { background: rgba(206, 154, 149, .14); border-color: rgba(206, 154, 149, .38); color: #E2B3AE; }
.h-works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.h-work {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: opacity .8s, transform .6s var(--ease-out), border-color .4s, background-color .9s;
}
.h-work.revealed:hover { transform: translateY(-6px); border-color: rgba(230, 203, 142, .35); }
.h-work__media { aspect-ratio: 16 / 10; overflow: hidden; background: #0A1838; }
.h-work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.h-work:hover .h-work__media img { transform: scale(1.07); }
.h-work__body { padding: 22px 24px 26px; }
.h-work__body .h-pill { margin-bottom: 14px; }
.h-work h3 { margin: 0 0 8px; font: 600 29px/1.1 'Cormorant Garamond', serif; }
.h-work p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--fg-2); }
.h-work--cta {
  justify-content: center;
  padding: 36px;
  background: radial-gradient(100% 80% at 100% 0%, rgba(230, 203, 142, .12), transparent 60%), transparent;
  border: 1.5px dashed rgba(230, 203, 142, .36);
}
.h-work--cta h3 { margin-bottom: 14px; font-size: clamp(34px, 3vw, 46px); line-height: 1; }
.h-work--cta p { margin-bottom: 26px; }

/* ═══════════════════ RECENSIONE ═══════════════════ */
.h-quote__inner { display: flex; flex-direction: column; align-items: center; max-width: 1040px; text-align: center; }
.h-quote__mark { width: clamp(60px, 7vw, 100px); height: auto; margin-bottom: 6px; color: var(--accent); opacity: .5; transition: color .9s; }
.h-stars { display: flex; gap: 6px; margin-bottom: 30px; }
.h-stars svg { width: 22px; height: 22px; color: #C9A86A; opacity: .18; transform: scale(.5) rotate(-30deg); transition: opacity .4s, transform .7s cubic-bezier(.3, 1.5, .5, 1); }
.h-stars.revealed svg { opacity: 1; transform: none; }
.h-stars svg:nth-child(2) { transition-delay: .1s; }
.h-stars svg:nth-child(3) { transition-delay: .2s; }
.h-stars svg:nth-child(4) { transition-delay: .3s; }
.h-stars svg:nth-child(5) { transition-delay: .4s; }
.h-stars[data-reveal] { opacity: 1; transform: none; }
.h-quote__text {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 4.3vw, 62px);
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.h-quote__text[data-reveal] { opacity: 1; transform: none; }
.h-quote__text .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px); transition: opacity .7s, transform .9s var(--ease-out), filter .7s; transition-delay: calc(var(--i) * 28ms); }
.h-quote__text.revealed .w { opacity: 1; transform: none; filter: none; }
.h-quote__who { display: flex; align-items: center; gap: 14px; margin-top: 38px; text-align: left; }
.h-avatar { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #0A1838, #13284F); color: #F0DCA6; font: 700 19px/1 'Cormorant Garamond', serif; letter-spacing: .04em; box-shadow: 0 0 0 1px rgba(230, 203, 142, .35); }
.h-quote__who strong { display: block; font: 600 21px/1.2 'Cormorant Garamond', serif; }
.h-quote__who span { font-size: 13px; color: var(--fg-2); }

/* ═══════════════════ PREZZI ═══════════════════ */
.h-toggle {
  --i: 0;
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-top: 34px;
  padding: 5px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.h-toggle__thumb {
  position: absolute;
  top: 5px; bottom: 5px; left: 5px;
  width: calc((100% - 10px) / 3);
  border-radius: 999px;
  background: #000B28;
  box-shadow: 0 10px 24px -12px rgba(0, 11, 40, .8);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform .55s cubic-bezier(.2, .9, .2, 1);
}
.h-toggle button {
  position: relative;
  z-index: 1;
  padding: 12px 22px;
  border-radius: 999px;
  font: 800 13.5px/1 'Mulish', sans-serif;
  color: var(--fg-2);
  white-space: nowrap;
  transition: color .3s;
}
.h-toggle button[aria-selected="true"] { color: #F0DCA6; }
.h-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.h-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: opacity .8s, transform .6s var(--ease-out), background-color .9s, border-color .9s;
}
.h-plan.revealed:hover { transform: translateY(-6px); }
.h-plan__name { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 18px; font: 800 12px/1 'Mulish', sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--fg-2); }
.h-plan__badge { padding: 6px 11px; border-radius: 999px; background: var(--grad-cta); font: 800 10.5px/1 'Mulish', sans-serif; letter-spacing: .12em; color: #1A1306; }
.h-plan__price { display: flex; align-items: baseline; gap: 4px; margin: 0; font-family: 'Cormorant Garamond', serif; color: var(--fg); }
.h-plan__price small { margin-right: 6px; font: 700 13px/1 'Mulish', sans-serif; color: var(--fg-2); }
.h-plan__price b { font-weight: 600; font-size: clamp(56px, 5.4vw, 78px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.h-plan__price i { font-style: normal; font-size: 32px; font-weight: 600; }
.h-plan__period { min-height: 2.8em; margin: 10px 0 18px; font-size: 13.5px; line-height: 1.4; color: var(--fg-2); transition: opacity .3s; }
.h-plan__desc { margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; color: var(--fg-2); }
.h-checks { display: grid; gap: 11px; margin: 0 0 30px; padding: 0; list-style: none; }
.h-checks li { display: flex; gap: 10px; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.h-checks svg { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--accent); }
.h-plan .h-btn-line, .h-plan .btn { margin-top: auto; justify-content: center; }
.h-btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fg) 24%, transparent);
  font: 800 14px/1 'Mulish', sans-serif;
  color: var(--fg);
  transition: background-color .3s, color .3s, border-color .3s;
}
.h-btn-line:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.h-plan--hot {
  --fg: #EAE3D3;
  --fg-2: #A7B2C9;
  --line: rgba(230, 203, 142, .16);
  --accent: #E6CB8E;
  background: #0A1838;
  border-color: transparent;
  color: #EAE3D3;
  box-shadow: 0 40px 90px -40px rgba(0, 11, 40, .75);
}
.h-plan--hot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--ang), rgba(230, 203, 142, .15) 0 55%, #F0DCA6 70%, #CE9A95 80%, rgba(230, 203, 142, .15) 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: hAng 6s linear infinite;
  pointer-events: none;
}
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes hAng { to { --ang: 360deg; } }
.h-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.h-pay__item { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: 22px; background: var(--card-2); border: 1px solid var(--line); transition: background-color .9s, border-color .9s; }
.h-pay__item svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.h-pay__item strong { display: block; margin-bottom: 4px; font: 600 21px/1.2 'Cormorant Garamond', serif; }
.h-pay__item span { font-size: 13.5px; line-height: 1.55; color: var(--fg-2); }
.h-care {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 48px;
  align-items: center;
  margin-top: 18px;
  padding: clamp(26px, 3.5vw, 42px);
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(201, 168, 106, .16), rgba(206, 154, 149, .12));
  border: 1px solid var(--line);
}
.h-care h3 { margin: 0 0 10px; font: 600 clamp(28px, 2.6vw, 38px)/1.1 'Cormorant Garamond', serif; }
.h-care p { margin: 0; max-width: 680px; font-size: 15px; line-height: 1.7; color: var(--fg-2); }
.h-addons-title { margin: 44px 0 18px; text-align: center; font: 700 12px/1 'Mulish', sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--fg-2); }
.h-addons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.h-addon { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: 700 14px/1.2 'Mulish', sans-serif; transition: background-color .9s; }
.h-addon em { padding: 7px 13px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font: 600 17px/1 'Cormorant Garamond', serif; font-style: normal; color: var(--accent); }
.h-note { max-width: 680px; margin: 26px auto 0; text-align: center; font-size: 13.5px; line-height: 1.6; color: var(--fg-2); }

/* ═══════════════════ FAQ ═══════════════════ */
.h-faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.h-faq__side { position: sticky; top: 110px; }
.h-faq__side .h-lead { margin: 22px 0 28px; }
.h-btn-soft { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: 800 14px/1 'Mulish', sans-serif; color: var(--fg); transition: border-color .3s, background-color .9s; }
.h-btn-soft:hover { border-color: var(--accent); }
.h-btn-soft svg { width: 18px; height: 18px; color: #25A863; }
.h-faq .faq-list { max-width: none; margin: 0; }
.h-faq .faq-item { border-bottom: 1px solid var(--line); transition: border-color .9s; }
.h-faq .faq-item:first-child { border-top: 1px solid var(--line); }
.h-faq .faq-question { display: grid; grid-template-columns: 44px 1fr 38px; align-items: center; gap: 12px; padding: 26px 0; color: var(--fg); text-align: left; }
.h-faq .faq-question:hover { color: var(--fg); }
.h-faq .faq-question:hover .h-faq__q { color: var(--accent); }
.h-faq__n { font: 800 12px/1 'Mulish', sans-serif; letter-spacing: .14em; color: var(--fg-2); transition: color .3s; }
.h-faq__q { font: 600 clamp(21px, 1.9vw, 27px)/1.25 'Cormorant Garamond', serif; transition: color .3s; }
.h-faq .faq-chevron { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); transition: transform .45s var(--ease-out), background-color .3s, color .3s; }
.h-faq .faq-chevron svg { width: 15px; height: 15px; }
.h-faq .faq-item.open .faq-chevron { transform: rotate(45deg); background: var(--accent); color: var(--bg); border-color: transparent; }
.h-faq .faq-item.open .h-faq__n { color: var(--accent); }
.h-faq .faq-answer-inner { margin: 0; padding: 0 50px 28px 56px; font-size: 15.5px; line-height: 1.75; color: var(--fg-2); }

/* ═══════════════════ CONTATTI ═══════════════════ */
.h-contact { overflow: hidden; isolation: isolate; }
.h-contact .h-stars { z-index: -2; }
.h-contact__head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.h-contact__sun { position: relative; width: clamp(150px, 16vw, 230px); aspect-ratio: 1; margin-bottom: -2vw; pointer-events: none; }
.h-contact__sun .h-sun__halo { inset: -60%; }
.h-contact__horizon { width: min(520px, 86%); height: 26px; margin-bottom: 34px; color: #C9A86A; }
.h-contact__title { margin: 0 0 24px; max-width: 1100px; font: 600 clamp(48px, 7.6vw, 120px)/.95 'Cormorant Garamond', serif; letter-spacing: -.03em; text-wrap: balance; }
.h-contact__head .h-lead { margin-inline: auto; }
.h-contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; margin-top: clamp(48px, 6vw, 80px); }
.h-contact__info { display: grid; gap: 14px; align-content: start; }
.h-cblock {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  color: var(--fg);
  transition: border-color .3s, background-color .3s, transform .5s var(--ease-out);
}
a.h-cblock:hover { border-color: rgba(230, 203, 142, .5); transform: translateY(-3px); }
.h-cblock--wa { background: linear-gradient(120deg, rgba(201, 168, 106, .2), rgba(206, 154, 149, .12)); }
.h-cblock__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #000B28, #13284F); border: 1px solid rgba(230, 203, 142, .2); color: #E6CB8E; }
.h-cblock__icon svg { width: 22px; height: 22px; }
.h-cblock small { display: block; margin-bottom: 5px; font: 800 11px/1 'Mulish', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.h-cblock strong { font: 600 23px/1.15 'Cormorant Garamond', serif; }
.h-cblock .h-arrow { width: 20px; height: 20px; margin-left: auto; color: var(--accent); transition: transform .35s var(--ease-out); }
a.h-cblock:hover .h-arrow { transform: translate(3px, -3px); }
.h-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.h-socials a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font: 800 13px/1 'Mulish', sans-serif; color: var(--gold-light); transition: background-color .3s, border-color .3s; }
.h-socials a:hover { background: rgba(230, 203, 142, .1); border-color: var(--gold); }
.h-socials svg { width: 16px; height: 16px; }
.h-form { padding: clamp(26px, 3vw, 38px); border-radius: 28px; background: rgba(10, 24, 56, .72); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.h-form .form-submit { height: 56px; }

/* ═══════════════════ FOOTER ═══════════════════ */
.h-footer { position: relative; overflow: hidden; padding-top: 0 !important; }
.h-footer__mega {
  display: block;
  padding: clamp(40px, 6vw, 80px) 0 clamp(26px, 3vw, 44px);
  font: 600 clamp(76px, 21vw, 330px)/.82 'Cormorant Garamond', serif;
  letter-spacing: -.045em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(230, 203, 142, .32);
  background: linear-gradient(90deg, #F0DCA6, #C9A86A 55%, #CE9A95) 0 0 / 0% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 1.6s cubic-bezier(.2, .7, .2, 1) .2s, opacity .8s, transform .8s;
  user-select: none;
}
.h-footer__mega.revealed { background-size: 100% 100%; }
.h-top { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(230, 203, 142, .2); font: 800 12px/1 'Mulish', sans-serif; letter-spacing: .08em; color: var(--gold-light); transition: background-color .3s; }
.h-top:hover { background: rgba(230, 203, 142, .1); }
.h-top svg { width: 14px; height: 14px; }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1100px) {
  .h-bento { grid-template-columns: repeat(2, 1fr); }
  .h-card, .h-card--web, .h-card--social { grid-column: span 1; }
  .h-card--web, .h-card--care { grid-column: span 2; }
  .h-plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .h-pay { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 900px) {
  .h-head { grid-template-columns: 1fr; }
  .h-manifesto__foot { grid-template-columns: 1fr; }
  .h-manifesto__foot .h-lead { justify-self: start; }
  .h-stats { grid-template-columns: repeat(2, 1fr); }
  .h-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .h-stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .h-works__grid { grid-template-columns: 1fr 1fr; }
  .h-work--cta { grid-column: span 2; }
  .h-faq__grid { grid-template-columns: 1fr; }
  .h-faq__side { position: static; }
  .h-contact__grid { grid-template-columns: 1fr; }
  .h-card--care { flex-direction: column; align-items: stretch; }
  .h-card--care .h-care-visual { padding: 0 30px 30px; }
  .h-care { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .h-hero__stage { --sun-x: 50%; }
  .h-hero__content { top: 0; padding-top: 108px; transform: translateY(calc(var(--p) * -6vh)); }
  .h-sun { width: min(78vw, 360px); top: 80%; }
  .h-sea { height: 27vh; }
  .h-coords { display: none; }
  .h-feature { grid-template-columns: 1fr; }
  .h-feature__stage { padding: 2% 0 13% 12%; }
}
@media (max-width: 640px) {
  .h-bento { grid-template-columns: 1fr; }
  .h-card, .h-card--web, .h-card--social, .h-card--care { grid-column: auto; }
  .h-card__visual { padding: 20px 18px 0; }
  .h-card__body { padding: 20px 22px 24px; }
  .h-card--care .h-care-visual { flex-direction: column; align-items: stretch; gap: 22px; padding: 0 22px 24px; }
  .h-works__grid { grid-template-columns: 1fr; }
  .h-work--cta { grid-column: auto; }
  .h-toggle { width: 100%; }
  .h-toggle button { padding: 12px 8px; font-size: 12.5px; }
  .h-faq .faq-question { grid-template-columns: 30px 1fr 34px; }
  .h-faq .faq-answer-inner { padding: 0 6px 24px 42px; }
  .h-hero__ctas .btn, .h-hero__ctas .h-btn-ghost { width: 100%; justify-content: center; }
  .h-trust { gap: 6px 16px; }
  .h-scrollhint { left: 50%; transform: translateX(-50%); }
  .mock-browser__screen { height: 200px; }
}
@media (max-width: 860px) and (max-height: 760px) {
  .h-trust { display: none; }
  .h-hero__sub { margin-bottom: 24px; }
}

/* ═══════════════════ MOVIMENTO RIDOTTO ═══════════════════ */
@media (prefers-reduced-motion: reduce) {
  .h-hero { height: auto; }
  .h-hero__stage { --p: .82; position: relative; }
  .h-anim, .h-line > .h-anim { animation: none; opacity: 1; transform: none; }
  .h-sun__in, .h-sun__rays, .h-sun__halo, .h-wave, .h-glints i, .h-scrollhint__line::after { animation: none; }
  .h-manifesto__quote .w { opacity: 1; }
  .h-quote__text .w { opacity: 1; transform: none; filter: none; }
  .h-card *, .mock-browser *, .mock-phone *, .mock-search *, .mock-map *, .mock-copy * { animation: none !important; }
  .ms-type, .mock-copy__line { max-width: none; border-right: 0; }
  .ms-row { opacity: 1; }
  .mb-l { transform: none; }
  .h-plan--hot::before { animation: none; }
  .h-footer__mega { background-size: 100% 100%; }
}

/* Numeri sempre allineati (Cormorant usa di default cifre all'antica: 01 sembrerebbe OI) */
.h-step__n, .h-method__num, .h-care-price b, .h-plan__price b, .h-stat b, .h-addon em, .h-faq__n, .h-avatar, .h-feature h3 {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.h-care-price span { display: block; margin-top: 12px; }
.h-stat span { max-width: 250px; }
@media (prefers-reduced-motion: reduce) {
  .h-hero__content { opacity: 1; transform: translateY(-50%); }
  .h-scrollhint { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .h-hero__content { transform: none; }
}
