/* =========================================================
   Elite Energy — Energia che connette
   ========================================================= */

/* ZT Hakimi: file del font sul server (assets/font), visibile a tutti.
   Pesi disponibili: Bold (usato anche per 600), ExtraBold, Black. */
@font-face { font-family: "ZT Hakimi"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../font/ZTHakimi-Bold.woff2") format("woff2"), url("../font/ZTHakimi-Bold.otf") format("opentype"); }
@font-face { font-family: "ZT Hakimi"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../font/ZTHakimi-Bold.woff2") format("woff2"), url("../font/ZTHakimi-Bold.otf") format("opentype"); }
@font-face { font-family: "ZT Hakimi"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("../font/ZTHakimi-ExtraBold.woff2") format("woff2"), url("../font/ZTHakimi-ExtraBold.otf") format("opentype"); }
@font-face { font-family: "ZT Hakimi"; font-weight: 900; font-style: normal; font-display: swap;
  src: url("../font/ZTHakimi-Black.woff2") format("woff2"), url("../font/ZTHakimi-Black.otf") format("opentype"); }

:root {
  --lime: #c0d346;
  --mint: #73c097;
  --tiffany: #1bb3af;
  --ink: #1b1c1c;
  --ink-soft: #4a4f4f;
  --muted: #6d7474;
  --bg: #ffffff;
  --bg-soft: #f4f8f3;
  --line: #e4ebe5;
  --grad: linear-gradient(90deg, #dddc15 0%, #72bf98 100%);
  --grad-full: linear-gradient(90deg, #c0d346 0%, #73c097 68%, #1bb3af 100%);
  --grad-diag: linear-gradient(135deg, #dddc15 0%, #73c097 55%, #1bb3af 100%);
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 20px 50px -20px rgba(27, 28, 28, .18);
  --font-title: "ZT Hakimi", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.grad-text { background: var(--grad-full); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-title); font-weight: 700; font-size: 1rem;
  padding: 1em 1.7em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad-full) border-box; /* border-box: niente ripetizione della sfumatura sotto il bordo */ color: var(--ink); box-shadow: 0 12px 30px -10px rgba(27,179,175,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(27,179,175,.75); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: #000; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-title); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tiffany); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--grad-full); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 14px 0;
}
.site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 7px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 56px; width: auto; transition: height .3s; }
.scrolled .logo img { height: 52px; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--font-title); font-weight: 600; font-size: .95rem;
  padding: .45em .95em; border-radius: 999px; transition: background .2s;
}
.main-nav a:hover { background: var(--bg-soft); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: .6em 1.2em; font-size: .9rem; transition: padding .3s; }
.scrolled .header-cta .btn { padding: .5em 1.1em; }
.phone-link { font-family: var(--font-title); font-weight: 700; display: flex; align-items: center; gap: .4em; font-size: .95rem; }
.phone-link svg { width: 18px; height: 18px; color: var(--tiffany); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* Overlay sotto l'header quando il menu mobile è aperto */
.nav-overlay {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(27,28,28,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
}
.menu-open .nav-overlay { opacity: 1; visibility: visible; transition: opacity .25s; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 116px 0 80px;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(27,179,175,.16), transparent 70%),
    radial-gradient(50% 50% at 60% 90%, rgba(221,220,21,.18), transparent 70%),
    var(--bg-soft);
  overflow: hidden;
  --theo-h: min(calc(100vh - 120px), 820px);
  --theo-w: calc(var(--theo-h) * 591 / 1100);
  --edge-w: clamp(28px, 4vw, 64px);
  --content-right: calc(var(--edge-w) + var(--theo-w) + clamp(24px, 4vw, 80px) + 640px);
  --visual-w: max(320px, min(620px, calc(100vw - var(--content-right) - clamp(40px, 6vw, 140px)), calc(100vh - 160px)));
}
/* "bordo dello schermo" da cui Theo si affaccia */
.hero-edge {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--edge-w);
  background: var(--ink);
  z-index: 2;
}
.hero-edge::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 6px; background: var(--grad-diag);
  box-shadow: 0 0 24px rgba(27,179,175,.55);
}
/* Theo esce da dietro la sbarra: il contenitore parte dal bordo della sbarra
   e nasconde tutto ciò che sta a sinistra; a fine animazione il ritaglio si
   allarga e compaiono le mani aggrappate al bordo. */
.hero-theo {
  position: absolute; z-index: 3;
  left: var(--edge-w); bottom: 0;
  height: var(--theo-h);
  width: calc(var(--theo-w) * .939);
  clip-path: inset(-50% -50% -50% calc(var(--theo-w) * -.1));
  animation: peek-clip 1.4s linear .2s both;
}
.hero-theo img {
  height: 100%; width: auto; max-width: none;
  margin-left: calc(var(--theo-w) * -.061);
  animation: peek 1.1s cubic-bezier(.2,.9,.3,1.15) .2s both;
  filter: drop-shadow(18px 24px 30px rgba(27,28,28,.18));
}
@keyframes peek { from { transform: translateX(-105%); } to { transform: none; } }
@keyframes peek-clip {
  0%, 78% { clip-path: inset(-50% -50% -50% 0); }
  100% { clip-path: inset(-50% -50% -50% calc(var(--theo-w) * -.1)); }
}

.hero-content {
  position: relative; z-index: 4;
  margin-left: calc(var(--edge-w) + var(--theo-w) + clamp(24px, 4vw, 80px));
  max-width: 640px;
  padding-right: 20px;
}
/* Elemento grafico a destra del banner */
.hero-visual {
  position: absolute; z-index: 1;
  width: var(--visual-w); aspect-ratio: 1;
  /* centrato nello spazio libero a destra del testo */
  /* se lo spazio non basta, non copre il testo ma esce un po' dal bordo destro */
  right: min(max(24px, calc((100vw - var(--content-right) - var(--visual-w)) / 2)), calc(100vw - var(--content-right) - var(--visual-w) - 16px));
  top: calc(50% + 30px); transform: translateY(-50%);
  animation: hv-in 1s .5s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes hv-in { from { opacity: 0; transform: translateY(-50%) scale(.85); } }
.hv-glow {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(221,220,21,.55), rgba(115,192,151,.45) 45%, rgba(27,179,175,.35) 70%, transparent 72%);
  filter: blur(40px);
}
.hv-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hv-dash { transform-origin: 300px 300px; animation: spin 60s linear infinite; }
.hv-arc { transform-origin: 300px 300px; animation: spin 14s linear infinite reverse; opacity: .9; }
.hv-core {
  position: absolute; inset: 27%; border-radius: 50%;
  background: var(--grad-diag);
  box-shadow: 0 30px 80px -20px rgba(27,179,175,.6), inset 0 -18px 40px rgba(0,0,0,.08), inset 0 18px 40px rgba(255,255,255,.35);
  display: grid; place-items: center;
  animation: core-pulse 4s ease-in-out infinite;
}
.hv-core svg { width: 56%; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.12)); }
@keyframes core-pulse { 50% { transform: scale(1.04); box-shadow: 0 36px 100px -16px rgba(27,179,175,.75), inset 0 -18px 40px rgba(0,0,0,.08), inset 0 18px 40px rgba(255,255,255,.35); } }
.hv-orbit {
  position: absolute; inset: 9%; border-radius: 50%;
  border: 1.5px solid rgba(27,179,175,.22);
  animation: spin 36s linear infinite;
}
.hv-arm { position: absolute; inset: 0; transform: rotate(var(--a)); }
.hv-node { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))); }
.hv-node-in {
  display: flex; align-items: center; gap: .5em;
  background: #fff; border-radius: 999px; padding: .45em 1em .45em .45em;
  box-shadow: 0 14px 30px -12px rgba(27,28,28,.3);
  font-family: var(--font-title); font-weight: 700; font-size: clamp(.75rem, .9vw, .95rem); white-space: nowrap;
  animation: spin 36s linear infinite reverse;
}
.hv-node-in svg {
  width: 2.2em; height: 2.2em; padding: .45em; border-radius: 50%;
  background: var(--grad-diag); color: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1499px) { .hv-node-in span { display: none; } .hv-node-in { padding: .4em; } }
@media (max-width: 1199px) { .hero-visual { display: none; } }

.hero h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); font-weight: 800; }
.hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-soft); max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.4rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; white-space: nowrap; align-items: center; gap: .55em;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .5em 1em .5em .55em; font-weight: 600; font-size: .92rem; box-shadow: 0 6px 16px -10px rgba(0,0,0,.2);
}
.badge i { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-diag); display: grid; place-items: center; }
.badge i svg { width: 16px; height: 16px; color: var(--ink); }

/* da desktop i tre badge restano sulla stessa riga */
@media (min-width: 1101px) {
  .hero-badges { flex-wrap: nowrap; gap: 6px; }
  .badge { font-size: clamp(.72rem, .62rem + .2vw, .8rem); gap: .45em; padding: .4em .85em .4em .4em; }
  .badge i { width: 26px; height: 26px; }
  .badge i svg { width: 14px; height: 14px; }
}

/* ---------- Sections ---------- */
section { position: relative; }
section[id] { scroll-margin-top: 72px; } /* le ancore non finiscono sotto l'header sticky */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); }

/* Servizi */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px 32px; overflow: hidden; transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--grad-full);
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 72px; height: 72px; border-radius: 22px; background: var(--grad-diag);
  display: grid; place-items: center; margin-bottom: 28px;
}
.service-icon svg { width: 36px; height: 36px; color: var(--ink); }
.service-card h3 { font-size: 1.8rem; font-weight: 800; }
.service-card p { color: var(--ink-soft); }
.service-card ul { list-style: none; padding: 0; margin: 0 0 28px; }
.service-card li { display: flex; gap: .6em; align-items: flex-start; padding: .35em 0; font-weight: 500; }
.service-card li::before {
  content: ""; flex: none; margin-top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad-diag);
}
.service-card .more {
  margin-top: auto; font-family: var(--font-title); font-weight: 700; display: inline-flex; align-items: center; gap: .5em;
}
.service-card .more svg { width: 18px; height: 18px; transition: transform .2s; }
.service-card:hover .more svg { transform: translateX(4px); }

/* Promo sconto luce */
.promo { padding-bottom: clamp(80px, 10vw, 140px); }
.promo-box {
  position: relative; overflow: hidden; border-radius: 40px;
  background: var(--ink); color: #fff;
  display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(28px, 4vw, 64px);
  padding: clamp(36px, 5vw, 72px);
}
.promo-box::before {
  content: ""; position: absolute; width: 640px; height: 640px; left: -220px; top: 50%; transform: translateY(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(192,211,70,.35), rgba(27,179,175,.18) 45%, transparent 70%);
}
.promo-amount { position: relative; text-align: center; }
.promo-value {
  display: block; font-family: var(--font-title); font-weight: 900; line-height: .9; letter-spacing: -.03em;
  font-size: clamp(5.5rem, 13vw, 11rem);
  background: var(--grad-full); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.promo-value small { font-size: .5em; margin-left: .05em; }
.promo-label { display: block; margin-top: .6rem; font-family: var(--font-title); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.35rem); color: rgba(255,255,255,.85); }
.promo-text { position: relative; }
.promo-tag {
  display: inline-flex; align-items: center; gap: .45em; margin-bottom: 1rem;
  background: var(--grad-full); color: var(--ink); border-radius: 999px; padding: .4em 1em .4em .7em;
  font-family: var(--font-title); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
.promo-tag svg { width: 1.1em; height: 1.1em; }
.promo-text h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 800; }
.promo-text p { color: rgba(255,255,255,.75); font-size: 1.08rem; max-width: 36em; }
.promo-text strong { color: #fff; }
.nowrap { white-space: nowrap; }
.promo-months { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.promo-months li {
  height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-title); font-weight: 700; font-size: .72rem; color: var(--ink);
  position: relative; overflow: hidden;
}
.promo-months li::before { content: ""; position: absolute; inset: 0; background: var(--grad-full); background-size: 1200% 100%; transform: scaleY(0); transform-origin: bottom; transition: transform .5s; }
.promo-months li span { position: relative; opacity: 0; transition: opacity .3s; }
.promo-box.in .promo-months li::before { transform: none; }
.promo-box.in .promo-months li span { opacity: 1; }
.promo-months li:nth-child(1)::before { background-position: 0.0% 0; transition-delay: 0.40s; }
.promo-months li:nth-child(1) span { transition-delay: 0.60s; }
.promo-months li:nth-child(2)::before { background-position: 9.09% 0; transition-delay: 0.47s; }
.promo-months li:nth-child(2) span { transition-delay: 0.67s; }
.promo-months li:nth-child(3)::before { background-position: 18.18% 0; transition-delay: 0.54s; }
.promo-months li:nth-child(3) span { transition-delay: 0.74s; }
.promo-months li:nth-child(4)::before { background-position: 27.27% 0; transition-delay: 0.61s; }
.promo-months li:nth-child(4) span { transition-delay: 0.81s; }
.promo-months li:nth-child(5)::before { background-position: 36.36% 0; transition-delay: 0.68s; }
.promo-months li:nth-child(5) span { transition-delay: 0.88s; }
.promo-months li:nth-child(6)::before { background-position: 45.45% 0; transition-delay: 0.75s; }
.promo-months li:nth-child(6) span { transition-delay: 0.95s; }
.promo-months li:nth-child(7)::before { background-position: 54.55% 0; transition-delay: 0.82s; }
.promo-months li:nth-child(7) span { transition-delay: 1.02s; }
.promo-months li:nth-child(8)::before { background-position: 63.64% 0; transition-delay: 0.89s; }
.promo-months li:nth-child(8) span { transition-delay: 1.09s; }
.promo-months li:nth-child(9)::before { background-position: 72.73% 0; transition-delay: 0.96s; }
.promo-months li:nth-child(9) span { transition-delay: 1.16s; }
.promo-months li:nth-child(10)::before { background-position: 81.82% 0; transition-delay: 1.03s; }
.promo-months li:nth-child(10) span { transition-delay: 1.23s; }
.promo-months li:nth-child(11)::before { background-position: 90.91% 0; transition-delay: 1.10s; }
.promo-months li:nth-child(11) span { transition-delay: 1.30s; }
.promo-months li:nth-child(12)::before { background-position: 100.0% 0; transition-delay: 1.17s; }
.promo-months li:nth-child(12) span { transition-delay: 1.37s; }
.promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.promo-actions .btn-dark { background: #fff; color: var(--ink); }
.promo-actions .btn-dark:hover { background: var(--lime); }
.promo-note { font-size: .85rem; color: rgba(255,255,255,.55); }

/* Richiami alla promo */
.hero-promo {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35em 1em .35em .35em;
  font-weight: 600; font-size: .9rem; box-shadow: 0 8px 20px -12px rgba(0,0,0,.25); transition: transform .2s, box-shadow .2s;
}
.hero-promo b { background: var(--grad-full); border-radius: 999px; padding: .25em .75em; font-family: var(--font-title); font-weight: 800; }
.hero-promo svg { width: 1em; height: 1em; flex-shrink: 0; transition: transform .2s; }
.hero-promo:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0,0,0,.3); }
.hero-promo:hover svg { transform: translateX(3px); }
.hero-promo + .eyebrow { display: flex; }
.service-promo {
  position: absolute; top: 30px; right: 28px; z-index: 1;
  background: var(--ink); color: #fff; border-radius: 999px; padding: .4em .9em;
  font-family: var(--font-title); font-weight: 700; font-size: .8rem;
}
.service-promo:hover { background: var(--tiffany); }

/* Target: privati / aziende */
.target { background: var(--bg-soft); }
.target-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.target-card {
  position: relative; border-radius: var(--radius); padding: 48px 44px; min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: #fff;
  background: var(--ink);
}
.target-card.light { background: var(--grad-diag); color: var(--ink); }
.target-card .tag {
  align-self: flex-start; margin-bottom: auto; position: relative; font-family: var(--font-title); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; padding: .5em 1em; border-radius: 999px;
  border: 1.5px solid currentColor;
}
.target-card h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; max-width: 14em; margin-top: 48px; }
.target-card > *:not(.deco) { position: relative; z-index: 1; } /* testo sopra il cerchio decorativo */
.target-card p { opacity: .85; max-width: 30em; margin-bottom: 1.6rem; }
.target-card .btn { align-self: flex-start; }
.target-card .deco {
  position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid rgba(255,255,255,.08);
  z-index: 0; pointer-events: none;
}
.target-card.light .deco { border-color: rgba(255,255,255,.35); }
.target-card:not(.light) .deco { border-color: transparent; background: radial-gradient(circle, rgba(27,179,175,.45), transparent 65%); }

/* Perché noi */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.why-visual { position: relative; display: grid; place-items: center; }
.why-visual .ring {
  position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: var(--grad-diag); opacity: .9;
  top: 50%; left: 50%; transform: translate(-50%, -46%);
}
.why-visual .ring::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--bg); }
.why-visual img { position: relative; width: min(100%, 460px); filter: drop-shadow(0 30px 30px rgba(0,0,0,.15)); }
.quote-big {
  font-family: var(--font-title); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.05; margin-bottom: 24px;
}
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.why-item { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 22px; }
.why-item strong { display: block; font-family: var(--font-title); font-size: 1.15rem; margin-bottom: .3em; }
.why-item span { color: var(--ink-soft); font-size: .95rem; }

/* Convenzioni */
.deals { background: var(--ink); color: #fff; overflow: hidden; }
.deals .section-head p { color: rgba(255,255,255,.7); }
.deals-wrap { display: grid; grid-template-columns: 1.4fr .9fr; gap: 40px; align-items: center; }
.deals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.deal-card {
  position: relative; border-radius: var(--radius); padding: 36px 32px; background: #262828;
  border: 1px solid rgba(255,255,255,.08); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s;
}
.deal-card:hover { transform: translateY(-6px); }
.deal-card::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,211,70,.25), transparent 65%);
}
.deal-card.tiffany::after { background: radial-gradient(circle, rgba(27,179,175,.35), transparent 65%); }
.deal-emblem {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 26px;
  background: var(--grad-diag); color: var(--ink);
}
.deal-emblem svg { width: 32px; height: 32px; }
.deal-card .label { font-family: var(--font-title); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: .6em; }
.deal-card.tiffany .label { color: var(--tiffany); }
.deal-card h3 { font-size: 1.9rem; font-weight: 800; }
.deal-card p { color: rgba(255,255,255,.72); }
.deal-card .btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }
.deals-theo { position: relative; }
.deals-theo img { width: 100%; max-width: 410px; margin-inline: auto; animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-16px); } }

/* Come funziona */
.steps-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.steps-wrap img { width: min(100%, 510px); margin-inline: auto; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; padding: 26px 26px 26px 96px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); margin-bottom: 16px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.steps li:hover { border-color: var(--mint); box-shadow: var(--shadow); }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 24px; top: 24px;
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--font-title); font-weight: 800; font-size: 1.1rem; background: var(--grad-diag);
}
.steps h3 { font-size: 1.3rem; margin-bottom: .25em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Point: localizzatore punti vendita (stesso sfondo della sezione Privati e Aziende) */
.point { background: var(--bg-soft); }
.point + .contact { padding-top: clamp(80px, 10vw, 140px); }
.point-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; height: 600px; }
.point-list { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.point-card {
  position: relative; background: #fff; border-radius: var(--radius-sm); padding: 22px 22px 22px 26px;
  border: 2px solid transparent; cursor: pointer; flex: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.point-card::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0;
  background: var(--grad-full); opacity: 0; transition: opacity .2s;
}
.point-card:hover { border-color: var(--line); }
.point-card:focus-visible { outline: 2px solid var(--tiffany); outline-offset: 2px; }
.point-card.active { border-color: var(--tiffany); box-shadow: var(--shadow); }
.point-card.active::before { opacity: 1; }
.point-card h3 { font-size: 1.25rem; margin-bottom: .6em; }
.point-info { list-style: none; padding: 0; margin: 0 0 1.1em; font-size: .93rem; color: var(--ink-soft); }
.point-info li { display: flex; gap: .65em; align-items: flex-start; margin-bottom: .45em; }
.point-info li[hidden] { display: none; }
.point-info svg { width: 17px; height: 17px; color: var(--tiffany); flex: none; margin-top: .22em; }
.point-info address { font-style: normal; }
.point-info a:hover { color: var(--tiffany); }
.point-dir { padding: .65em 1.25em; font-size: .9rem; }
.point-map { border-radius: var(--radius-sm); background: #fff; overflow: hidden; z-index: 0; height: 100%; }
.point-map .leaflet-control-attribution { font-size: 10px; }
/* Segnaposto personalizzato: goccia con gradiente del brand e simbolo del logo */
.ee-pin { background: none; border: 0; }
.ee-pin-in {
  width: 46px; height: 46px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--grad-diag); border: 3px solid #fff;
  box-shadow: 0 10px 22px -6px rgba(27,28,28,.45);
  display: grid; place-items: center; transition: transform .2s, background .2s;
}
.ee-pin-in svg { width: 24px; height: 24px; transform: rotate(45deg); }
.ee-pin.active .ee-pin-in { background: var(--ink); transform: rotate(-45deg) scale(1.2); }
.point-map .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); }
.point-map .leaflet-popup-content { margin: 12px 16px; font-family: var(--font-body); font-size: .88rem; line-height: 1.4; }
.point-map .leaflet-popup-content strong { font-family: var(--font-title); font-size: 1rem; display: block; }

/* CTA / Contatti */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
.contact-box {
  position: relative; border-radius: 40px; background: var(--grad-diag); padding: clamp(36px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; overflow: hidden;
}
.contact-box::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -200px;
  background: rgba(255,255,255,.18);
}
.contact-box h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
.contact-intro { position: relative; }
.contact-intro p { font-size: 1.1rem; max-width: 28em; }
.contact-intro img { width: min(100%, 460px); margin-top: 10px; }
.contact-form {
  position: relative; background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.contact-form .full { grid-column: 1 / -1; }
/* le colonne della griglia possono restringersi sotto la larghezza del contenuto (es. opzioni lunghe della select) */
.contact-box > *, .contact-form > *, .azienda-fields > * { min-width: 0; }
.contact-form select { max-width: 100%; text-overflow: ellipsis; }
.azienda-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.azienda-fields[hidden] { display: none; }
.contact-form label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: .85em 1em; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--tiffany); background: #fff; }
.contact-form textarea { min-height: 100px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: .55em 1.1em; border-radius: 999px; border: 1.5px solid var(--line);
  cursor: pointer; font-weight: 600; font-size: .9rem; transition: .2s;
}
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.privacy { display: flex; gap: .6em; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.privacy input { width: auto; margin-top: .25em; accent-color: var(--tiffany); }
.form-msg { grid-column: 1 / -1; font-weight: 600; color: var(--tiffany); display: none; }
.form-msg.show { display: block; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: .7; cursor: wait; transform: none; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 80px 0 30px; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--grad-full); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-grid img { height: 52px; width: auto; margin-bottom: 20px; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .55em; }
.footer-grid a:hover { color: var(--lime); }
.payoff { font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; }
.site-footer .payoff { font-size: clamp(.82rem, 1.05vw, .98rem); white-space: nowrap; margin-bottom: 1.2em; }
.footer-addresses { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.footer-addresses li { display: flex; gap: .6em; align-items: flex-start; margin-bottom: .6em; }
.footer-addresses svg { width: 16px; height: 16px; color: var(--tiffany); flex: none; margin-top: .2em; }
.footer-addresses address { font-style: normal; }
.footer-contacts a { display: inline-flex; align-items: center; gap: .6em; }
.footer-contacts svg { width: 16px; height: 16px; color: var(--tiffany); flex: none; }
.footer-contacts .piva { margin-top: 1em; padding-top: 1em; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.credits { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .5em; }
.credits img { width: 60px; height: auto; display: inline-block; }
.credits-logo { display: inline-flex; transition: opacity .2s; }
.credits-logo:hover { opacity: .75; }
.legal-links { display: flex; flex-wrap: wrap; gap: .4em 0; }
.legal-links a + a::before { content: "·"; margin: 0 .6em; color: rgba(255,255,255,.4); }
.legal-links a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* Ticker */
.ticker { background: var(--grad-full); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker var(--ticker-dur, 30s) linear infinite; }
.ticker-group { display: flex; flex: none; }
/* ogni voce ha lo stesso spazio a destra, anche tra un gruppo e l'altro: il ciclo si ricongiunge senza scatti */
.ticker span { font-family: var(--font-title); font-weight: 800; font-size: 1.4rem; white-space: nowrap; display: flex; align-items: center; gap: 48px; padding-right: 48px; }
.ticker span::after { content: "✦"; font-size: 1rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .phone-link { display: none; }
  .nav-toggle { display: block; }
  /* Menu mobile: tendina staccata dalla barra, come un popup */
  .main-nav {
    position: absolute; top: calc(100% + 14px); left: 16px; right: 16px;
    background: #fff; border-radius: 24px; padding: 12px;
    box-shadow: 0 24px 60px -12px rgba(27,28,28,.45);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top center;
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: .85em 1.1em; font-size: 1rem; }
  /* con il menu aperto la barra diventa bianca e il toggle si trasforma in X */
  .menu-open .site-header { background: #fff; box-shadow: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .deals-wrap { grid-template-columns: 1fr; }
  .deals-theo img { max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* Theo resta accanto al testo anche su tablet/mobile, ridimensionato */
  .hero {
    --theo-h: min(64vh, 520px);
    align-items: flex-end;
    min-height: calc(var(--theo-h) + 100px);
    padding: 116px 0 56px;
  }
  .hero-content { margin-left: calc(var(--edge-w) + var(--theo-w) + 24px); }
  .hero-theo img { filter: drop-shadow(8px 12px 14px rgba(27,28,28,.14)); }
  .target-grid, .why-grid, .steps-wrap, .contact-box, .promo-box { grid-template-columns: 1fr; }
  .why-visual img { max-width: 360px; }
  .steps-wrap img { max-width: 380px; order: 2; }
  /* Point: prima la mappa, poi la lista in verticale */
  .point-wrap { grid-template-columns: 1fr; height: auto; }
  .point-map { order: -1; height: 380px; }
  .point-list { overflow: visible; padding-right: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-cta .btn { display: none; }
  .logo img { height: 48px; }
  .scrolled .logo img { height: 48px; }
  /* Mobile: testi a tutta colonna, sotto Theo che si affaccia con i pulsanti accanto */
  .hero {
    --edge-w: 14px;
    --theo-w: 38vw;
    --theo-h: calc(var(--theo-w) * 1100 / 591);
    min-height: 0;
    padding: 108px 0 0;
  }
  .hero-content { margin-left: calc(var(--edge-w) + 16px); padding-right: 18px; }
  .hero-theo img { filter: drop-shadow(4px 6px 6px rgba(27,28,28,.12)); }
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .hero .lead { font-size: 1rem; margin-bottom: 1rem; }
  .hero-actions {
    flex-direction: column; justify-content: center; align-items: stretch; gap: 10px;
    min-height: var(--theo-h);
    margin-left: calc(var(--theo-w) - 16px + 14px);
    padding: 24px 0 28px;
    margin-bottom: 0;
  }
  .hero-actions .btn { justify-content: center; font-size: .84rem; padding: .85em .9em; white-space: normal; text-align: center; }
  .hero-actions .btn svg { display: none; }
  .hero-badges { display: none; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .legal-links, .credits { justify-content: center; }
  .legal-links { gap: .5em 1.4em; }
  .legal-links a + a::before { content: none; }
  .services-grid, .deals-grid, .why-list, .contact-form, .azienda-fields { grid-template-columns: 1fr; }
  .promo-months { grid-template-columns: repeat(6, 1fr); }
  .hero-promo { font-size: .82rem; margin-bottom: 1rem; white-space: nowrap; gap: .5em; padding-right: .9em; }
  .hero-promo .promo-extra { display: none; }
  .target-card { padding: 40px 28px; min-height: 340px; }
  .contact-box { padding: 32px 16px 16px; border-radius: 28px; gap: 28px; }
  .contact-intro { padding: 0 6px; }
  .contact-form { padding: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
