/* ═══════════════════════════════════════════════════════
   HOME.CSS — Stili specifici per index.html
   BigBag Smart / Greenplast S.r.l.s.
═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center;
  padding: 9rem 2rem 5rem;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 60%, rgba(46,204,113,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(231,76,60,0.05) 0%, transparent 60%);
  animation: respira 8s ease-in-out infinite;
}
@keyframes respira {
  0%,100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.9; letter-spacing: 0.04em;
  color: var(--bianco); margin-bottom: 1.2rem;
  position: relative; z-index: 1;
  opacity: 0; animation: saliSu 0.8s 0.4s ease forwards;
}
.hero h1 em     { font-style: normal; color: var(--verde); }
.hero h1 strong { font-weight: 400;   color: var(--rosso); }

.hero-sub {
  font-size: 1.05rem; color: var(--grigio-2);
  max-width: 480px; line-height: 1.7; margin-bottom: 2.5rem;
  position: relative; z-index: 1;
  text-align: center; /* allineamento centrato esplicito */
  opacity: 0; animation: saliSu 0.8s 0.55s ease forwards;
}

/* ── Immagine prodotto nella hero (stile originale dal file allegato) ── */
.prodotto-vetrina-hero {
  position: relative;
  width: min(420px, 88vw);
  margin: 0 auto 3.5rem;
  opacity: 0; animation: saliSu 0.9s 0.65s ease forwards;
  z-index: 1;
}
/* Alone verde sotto */
.prodotto-vetrina-hero::after {
  content: '';
  position: absolute;
  bottom: -22px; left: 12%; right: 12%;
  height: 44px;
  background: radial-gradient(ellipse, rgba(46,204,113,0.2) 0%, transparent 70%);
  filter: blur(12px);
  z-index: 0; pointer-events: none;
}
.prodotto-cornice-hero {
  position: relative; z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(46,204,113,0.22);
  background: rgba(20,20,20,0.6);
  aspect-ratio: 1 / 1;
  width: 100%;
  transition: transform 0.65s cubic-bezier(0.34,1.2,0.64,1), border-color 0.4s;
}
.prodotto-cornice-hero:hover {
  transform: scale(1.025) translateY(-7px);
  border-color: rgba(46,204,113,0.45);
}
.prodotto-cornice-hero img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
}
/* Badge Made in Italy sopra l'immagine hero */
.brevetto-badge-hero {
  position: absolute; top: 13px; right: 13px;
  background: rgba(8,8,8,0.8);
  border: 1px solid rgba(46,204,113,0.5);
  border-radius: 999px;
  padding: 0.3rem 0.78rem;
  font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--verde);
  backdrop-filter: blur(6px); z-index: 1;
}

/* Freccia scroll in basso */
.hero-freccia {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--verde));
  animation: frecciaPolso 2s ease-in-out infinite;
}
@keyframes frecciaPolso {
  0%,100% { opacity: 0.3; transform: translateX(-50%) scaleY(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scaleY(1.15); }
}

@keyframes saliSu {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════
   SEZIONE PRODOTTO CON HOTSPOT
═══════════════════════════════════════════════════════ */
.sezione-prodotto {
  position: relative; z-index: 1;
  padding: 6rem 2rem;
  overflow: visible;
}
.sezione-prodotto-inner {
  max-width: 1100px; margin: 0 auto;
  text-align: center;
}

.sezione-prodotto .intro { margin-bottom: 4rem; text-align: center; }

/* Sottotitolo centrato — regola esplicita per sovrascrivere eventuali conflitti */
.sezione-prodotto .intro .sottotitolo-sezione {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Intro della sezione "come funziona" — testo a sinistra */
.intro--sinistra {
  text-align: left;
}
.intro--sinistra .sottotitolo-sezione {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* ── GRIGLIA DOPPIA FOTO ── */
.prodotto-griglia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem 4rem;
  align-items: start;
}

.prodotto-wrapper {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  /* Nessun z-index esplicito: non crea stacking context,
     i tooltip possono uscire liberamente */
}

.prodotto-vetrina {
  position: relative;
  width: min(380px, 90%);
  margin: 0 auto 2rem;
  overflow: visible;
  /* Nessun z-index esplicito */
}
.prodotto-vetrina::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 10%; right: 10%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(46,204,113,0.18) 0%, transparent 70%);
  filter: blur(12px);
  z-index: 0; pointer-events: none;
}

.prodotto-cornice {
  position: relative;
  /* z-index rimosso: evita di creare uno stacking context
     che imprigiona i tooltip degli hotspot */
  border-radius: var(--radius-lg);
  overflow: visible;
  border: 1px solid rgba(46,204,113,0.22);
  background: rgba(20,20,20,0.6);
  aspect-ratio: 1 / 1;
  width: 100%;
  transition: var(--transition-slow);
}
.prodotto-cornice:hover {
  border-color: rgba(46,204,113,0.4);
  box-shadow: var(--shadow-glow);
}
.prodotto-cornice img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-lg);
}

.brevetto-badge {
  position: absolute;
  bottom: 1rem; right: -0.5rem;
  background: linear-gradient(135deg, #009246, #ce2b37);
  color: #fff;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  padding: 0.3rem 0.85rem; border-radius: 999px;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}


/* ══════════════════════════════════════════════════════════
   HOTSPOT — punti interattivi sulla foto prodotto
   Il wrapper .prodotto-cornice deve avere overflow:visible
   per permettere ai tooltip di uscire dai bordi.
══════════════════════════════════════════════════════════ */

/* Punto pulsante + tooltip */
.hs-dot-wrap {
  position: absolute;
  cursor: pointer;
  /* transform: translate(-50%,-50%) applicato inline via JS */
  z-index: 10;
  /* Dimensione area click minima accessibile */
  min-width: 28px; min-height: 28px;
  display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   TOOLTIP PORTAL — appeso al <body>, immune da stacking context.
   Position:fixed + z-index altissimo garantisce che sia sempre
   sopra qualsiasi elemento della pagina.
══════════════════════════════════════════════════════════ */
.hs-tooltip-portal {
  position: fixed;   /* fixed → coordinate rispetto alla viewport, non al DOM */
  z-index: 99999;    /* sopra tutto: header (100), pannello (9100), tutto */
  width: 220px;
  background: rgba(14,14,14,0.97);
  border: 1px solid rgba(46,204,113,0.35);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  pointer-events: none;
  box-shadow: 0 16px 50px rgba(0,0,0,0.55);
  text-align: left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.18s ease;
}
/* Contenuto tooltip portal — stesse classi del tooltip inline */
.hs-tooltip-portal .tt-titolo { font-family:'Bebas Neue',sans-serif; font-size:0.95rem; letter-spacing:0.1em; color:#2ecc71; display:block; margin-bottom:0.25rem; }
.hs-tooltip-portal .tt-desc   { font-size:0.75rem; color:rgba(245,245,240,0.65); line-height:1.5; margin:0; }
.hs-tooltip-portal .tt-cta    { display:block; margin-top:0.45rem; font-size:0.62rem; letter-spacing:0.16em; text-transform:uppercase; color:#2ecc71; opacity:0.75; }
.hs-tooltip-portal .tt-multi  { display:inline-block; margin-top:0.3rem; font-size:0.6rem; letter-spacing:0.16em; text-transform:uppercase; color:#2ecc71; opacity:0.75; }
.hs-tooltip-portal .tt-opt    { display:inline-block; margin-top:0.4rem; font-size:0.6rem; letter-spacing:0.14em; text-transform:uppercase; color:#e74c3c; border:1px solid rgba(231,76,60,0.4); padding:0.1rem 0.5rem; border-radius:999px; }

/* Punto tondo — garantito con width=height e border-radius:50% */
.hs-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;           /* CERCHIO PERFETTO */
  background: #2ecc71;
  border: 2px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
  animation: hs-pulse 2.4s ease-out infinite;
}
.hs-dot-wrap:hover .hs-dot,
.hs-dot-wrap:focus .hs-dot { transform: scale(1.35); background: #fff; }

.hs-dot-wrap.hs-optional .hs-dot {
  background: #e74c3c;
  animation: hs-pulse-red 2.4s ease-out infinite;
}

@keyframes hs-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(46,204,113,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(46,204,113,0);    }
  100% { box-shadow: 0 0 0 0   rgba(46,204,113,0);     }
}
@keyframes hs-pulse-red {
  0%   { box-shadow: 0 0 0 0   rgba(231,76,60,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(231,76,60,0);   }
  100% { box-shadow: 0 0 0 0   rgba(231,76,60,0);    }
}

/* Tooltip — appare in hover, sopra il punto per default */
.hs-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 210px;
  background: rgba(14,14,14,0.97);
  border: 1px solid rgba(46,204,113,0.35);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  pointer-events: none;
  opacity: 0;
  z-index: 300;
  box-shadow: 0 16px 50px rgba(0,0,0,0.55);
  text-align: left;
  backdrop-filter: blur(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
/* Freccetta */
.hs-tooltip::after {
  content:'';
  position: absolute; bottom: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: rgba(14,14,14,0.97);
  border-right: 1px solid rgba(46,204,113,0.35);
  border-bottom: 1px solid rgba(46,204,113,0.35);
}

/* Tooltip sotto */
.hs-dot-wrap.hs-sotto .hs-tooltip {
  bottom: auto; top: calc(100% + 12px);
  transform: translateX(-50%) translateY(-6px);
}
.hs-dot-wrap.hs-sotto .hs-tooltip::after {
  bottom: auto; top: -7px;
  transform: translateX(-50%) rotate(-135deg);
}
/* Tooltip a sinistra */
.hs-dot-wrap.hs-sinistra .hs-tooltip {
  left: auto; right: calc(100% + 12px);
  bottom: 50%; top: auto;
  transform: translateY(50%) translateX(6px);
}
.hs-dot-wrap.hs-sinistra .hs-tooltip::after {
  left: auto; right: -7px; bottom: 50%; top: auto;
  transform: translateY(50%) rotate(-45deg);
}

/* Mostra tooltip all'hover/focus */
.hs-dot-wrap:hover .hs-tooltip,
.hs-dot-wrap:focus .hs-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }
.hs-dot-wrap.hs-sotto:hover .hs-tooltip,
.hs-dot-wrap.hs-sotto:focus .hs-tooltip { transform: translateX(-50%) translateY(0); }
.hs-dot-wrap.hs-sinistra:hover .hs-tooltip,
.hs-dot-wrap.hs-sinistra:focus .hs-tooltip { transform: translateY(50%) translateX(0); }

/* Contenuto tooltip */
.tt-icona  { font-size:1.3rem; display:block; margin-bottom:0.3rem; }
.tt-titolo { font-family:'Bebas Neue',sans-serif; font-size:0.95rem; letter-spacing:0.1em; color:#2ecc71; display:block; margin-bottom:0.25rem; }
.hs-dot-wrap.hs-optional .tt-titolo { color:#e74c3c; }
.tt-desc   { font-size:0.75rem; color:rgba(245,245,240,0.65); line-height:1.5; margin:0; }
.tt-cta    { display:block; margin-top:0.45rem; font-size:0.62rem; letter-spacing:0.16em; text-transform:uppercase; color:#2ecc71; opacity:0.75; }
.tt-opt    { display:inline-block; margin-top:0.4rem; font-size:0.6rem; letter-spacing:0.14em; text-transform:uppercase; color:#e74c3c; border:1px solid rgba(231,76,60,0.4); padding:0.1rem 0.5rem; border-radius:999px; }

/* ═══════════════════════════════════════════════════════
   SEZIONE COME FUNZIONA
═══════════════════════════════════════════════════════ */
.sezione-funziona {
  position: relative; z-index: 1;
  padding: 6rem 2rem;
}
.funziona-inner { max-width: 1000px; margin: 0 auto; }
.funziona-inner .intro { margin-bottom: 4rem; }

.step-griglia {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem;
}
.step-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  transition: transform var(--transition-slow), border-color var(--transition-med);
  position: relative; overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--verde), var(--rosso));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s ease;
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(46,204,113,0.2); }
.step-card:hover::before { transform: scaleX(1); }

.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem; color: rgba(46,204,113,0.12);
  line-height: 1; display: block; margin-bottom: 1rem;
  transition: color var(--transition-med);
}
.step-card:hover .step-num { color: rgba(46,204,113,0.25); }
.step-icona { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.step-titolo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem; letter-spacing: 0.08em; color: var(--bianco);
  margin-bottom: 0.6rem;
}
.step-desc { font-size: 0.88rem; color: var(--grigio-2); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════
   SEZIONE CTA FINALE
═══════════════════════════════════════════════════════ */
.sezione-cta {
  position: relative; z-index: 1;
  padding: 6rem 2rem;
  text-align: center;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(46,204,113,0.06) 0%, transparent 70%);
}
.cta-box {
  max-width: 620px; margin: 0 auto;
}
.cta-box .titolo-sezione { margin-bottom: 1.2rem; }
.cta-box p { color: var(--grigio-2); margin-bottom: 2.5rem; font-size: 1rem; line-height: 1.7; }

.btn-primario {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--verde); color: #000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 0.18em;
  padding: 0.9rem 2.2rem; border-radius: 999px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-primario:hover {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(46,204,113,0.35);
}
.btn-secondario {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent; color: var(--bianco);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 0.18em;
  padding: 0.9rem 2.2rem; border-radius: 999px;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  margin-left: 1rem;
}
.btn-secondario:hover {
  border-color: var(--verde); color: var(--verde);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE HOME
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .prodotto-griglia { grid-template-columns: 1fr; gap: 5rem; }
  .step-griglia { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 600px) {
  .sezione-prodotto { padding: 4rem 1.2rem; }
  .btn-secondario { margin-left: 0; margin-top: 0.8rem; }
  .cta-box .pulsanti { display: flex; flex-direction: column; align-items: center; gap: 0; }
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center;
  padding: 9rem 2rem 5rem;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 60%, rgba(46,204,113,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(231,76,60,0.05) 0%, transparent 60%);
  animation: respira 8s ease-in-out infinite;
}
@keyframes respira {
  0%,100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

.hero-etichetta {
  font-size: 0.7rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--verde);
  margin-bottom: 1.5rem; position: relative; z-index: 1;
  opacity: 0; animation: saliSu 0.8s 0.2s ease forwards;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.9; letter-spacing: 0.04em;
  color: var(--bianco); margin-bottom: 1.2rem;
  position: relative; z-index: 1;
  opacity: 0; animation: saliSu 0.8s 0.4s ease forwards;
}
.hero h1 em     { font-style: normal; color: var(--verde); }
.hero h1 strong { font-weight: 400;   color: var(--rosso); }

.hero-sub {
  font-size: 1.05rem; color: var(--grigio-2);
  max-width: 480px; line-height: 1.7; margin-bottom: 2.5rem;
  position: relative; z-index: 1;
  opacity: 0; animation: saliSu 0.8s 0.55s ease forwards;
}

/* Freccia scroll in basso */
.hero-freccia {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 36px;
  border: 2px solid rgba(46,204,113,0.4);
  border-radius: 999px;
}
.hero-freccia::after {
  content: '';
  position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--verde); border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

@keyframes saliSu {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════
   SEZIONE PRODOTTO CON HOTSPOT
═══════════════════════════════════════════════════════ */
.sezione-prodotto {
  position: relative; z-index: 1;
  padding: 6rem 2rem;
  overflow: visible;
}
.sezione-prodotto-inner {
  max-width: 1100px; margin: 0 auto;
  text-align: center;
}

/* Titolo e sottotitolo della sezione */
.sezione-prodotto .intro { margin-bottom: 4rem; }

/* ── GRIGLIA DOPPIA FOTO ── */
.prodotto-griglia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem 4rem;
  align-items: start;
}

/* Wrapper per ogni foto + hotspot */
.prodotto-wrapper {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}

/* Alone verde */
.prodotto-vetrina {
  position: relative;
  width: min(380px, 90%);
  margin: 0 auto 2rem;
  overflow: visible;
}
.prodotto-vetrina::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 10%; right: 10%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(46,204,113,0.18) 0%, transparent 70%);
  filter: blur(12px);
  z-index: 0; pointer-events: none;
}

/* Badge Made in Italy */
.brevetto-badge {
  position: absolute;
  bottom: 1rem; right: -0.5rem;
  background: linear-gradient(135deg, #009246, #ce2b37);
  color: #fff;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  padding: 0.3rem 0.85rem; border-radius: 999px;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* ── HOTSPOT ── */
.hotspot {
  position: absolute;
  z-index: 10;
  cursor: pointer;
}

/* Punto pulsante */
.hotspot-punto {
  width: 18px; height: 18px;
  background: var(--verde);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 0 0 rgba(46,204,113,0.6);
  animation: pulse-dot 2.2s ease-out infinite;
  position: relative; z-index: 2;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.hotspot:hover .hotspot-punto,
.hotspot:focus .hotspot-punto {
  transform: scale(1.25);
  background: #fff;
}
/* Colore rosso per optional */
.hotspot.optional .hotspot-punto {
  background: var(--rosso);
  box-shadow: 0 0 0 0 rgba(231,76,60,0.6);
  animation: pulse-dot-red 2.2s ease-out infinite;
}

@keyframes pulse-dot {
  0%  { box-shadow: 0 0 0 0 rgba(46,204,113,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(46,204,113,0); }
  100%{ box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
@keyframes pulse-dot-red {
  0%  { box-shadow: 0 0 0 0 rgba(231,76,60,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(231,76,60,0); }
  100%{ box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}

/* Tooltip del hotspot */
.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%; transform: translateX(-50%) translateY(6px);
  width: 220px;
  background: rgba(16,16,16,0.97);
  border: 1px solid rgba(46,204,113,0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
  text-align: left;
  backdrop-filter: blur(12px);
}
/* Freccia triangolo */
.hotspot-tooltip::after {
  content: '';
  position: absolute; bottom: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: rgba(16,16,16,0.97);
  border-right: 1px solid rgba(46,204,113,0.3);
  border-bottom: 1px solid rgba(46,204,113,0.3);
}
/* Tooltip va sotto se siamo troppo in alto */
.hotspot.sotto .hotspot-tooltip {
  bottom: auto; top: calc(100% + 14px);
  transform: translateX(-50%) translateY(-6px);
}
.hotspot.sotto .hotspot-tooltip::after {
  bottom: auto; top: -7px;
  transform: translateX(-50%) rotate(-135deg);
}
/* Tooltip va a destra se siamo a sinistra */
.hotspot.destra .hotspot-tooltip {
  left: auto; right: calc(100% + 14px);
  bottom: 50%; top: auto;
  transform: translateY(50%) translateX(6px);
}
.hotspot.destra .hotspot-tooltip::after {
  left: auto; right: -7px;
  bottom: 50%; top: auto;
  transform: translateY(50%) rotate(-45deg);
}

.hotspot:hover .hotspot-tooltip,
.hotspot:focus .hotspot-tooltip,
.hotspot.aperto .hotspot-tooltip {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.hotspot.sotto:hover .hotspot-tooltip,
.hotspot.sotto:focus .hotspot-tooltip {
  transform: translateX(-50%) translateY(0);
}
.hotspot.destra:hover .hotspot-tooltip,
.hotspot.destra:focus .hotspot-tooltip {
  transform: translateY(50%) translateX(0);
}

.tooltip-icona {
  font-size: 1.4rem; margin-bottom: 0.4rem; display: block;
}
.tooltip-titolo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 0.1em;
  color: var(--verde); margin-bottom: 0.3rem; display: block;
}
.hotspot.optional .tooltip-titolo { color: var(--rosso); }
.tooltip-desc {
  font-size: 0.78rem; color: var(--grigio-2);
  line-height: 1.55;
}
.tooltip-optional {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--rosso); border: 1px solid rgba(231,76,60,0.4);
  padding: 0.1rem 0.5rem; border-radius: 999px;
}

/* Legenda */
.hotspot-legenda {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin-top: 2rem;
  font-size: 0.75rem; color: var(--grigio);
}
.legenda-item { display: flex; align-items: center; gap: 0.5rem; }
.legenda-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.legenda-dot.verde { background: var(--verde); }
.legenda-dot.rosso { background: var(--rosso); }

/* Intestazione di ciascuna foto */
.prodotto-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem; letter-spacing: 0.3em;
  color: var(--grigio); text-transform: uppercase;
  margin-bottom: 0.8rem;
}

/* ═══════════════════════════════════════════════════════
   SEZIONE BREVETTO / NUMERI
═══════════════════════════════════════════════════════ */
.sezione-numeri {
  position: relative; z-index: 1;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(46,204,113,0.03) 50%, transparent 100%);
}
.numeri-inner {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.numeri-griglia {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-top: 3rem;
}
.numero-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: border-color var(--transition-med), background var(--transition-med);
}
.numero-card:hover {
  border-color: rgba(46,204,113,0.25);
  background: rgba(46,204,113,0.03);
}
.numero-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem; letter-spacing: 0.02em;
  color: var(--verde); line-height: 1;
  display: block;
}
.numero-label {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--grigio); margin-top: 0.5rem; display: block;
}


/* ═══════════════════════════════════════════════════════
   SEZIONE COME FUNZIONA
═══════════════════════════════════════════════════════ */
.sezione-funziona {
  position: relative; z-index: 1;
  padding: 6rem 2rem;
}
.funziona-inner { max-width: 1000px; margin: 0 auto; }
.funziona-inner .intro { margin-bottom: 4rem; }

.step-griglia {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem;
}
.step-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  transition: transform var(--transition-slow), border-color var(--transition-med);
  position: relative; overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--verde), var(--rosso));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s ease;
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(46,204,113,0.2); }
.step-card:hover::before { transform: scaleX(1); }

.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem; color: rgba(46,204,113,0.12);
  line-height: 1; display: block; margin-bottom: 1rem;
  transition: color var(--transition-med);
}
.step-card:hover .step-num { color: rgba(46,204,113,0.25); }
.step-icona { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.step-icona:empty { display: none; margin: 0; }
.step-titolo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem; letter-spacing: 0.08em; color: var(--bianco);
  margin-bottom: 0.6rem;
}
.step-desc { font-size: 0.88rem; color: var(--grigio-2); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════
   SEZIONE CTA FINALE
═══════════════════════════════════════════════════════ */
.sezione-cta {
  position: relative; z-index: 1;
  padding: 6rem 2rem;
  text-align: center;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(46,204,113,0.06) 0%, transparent 70%);
}
.cta-box {
  max-width: 620px; margin: 0 auto;
}
.cta-box .titolo-sezione { margin-bottom: 1.2rem; }
.cta-box p { color: var(--grigio-2); margin-bottom: 2.5rem; font-size: 1rem; line-height: 1.7; }

.btn-primario {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--verde); color: #000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 0.18em;
  padding: 0.9rem 2.2rem; border-radius: 999px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-primario:hover {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(46,204,113,0.35);
}
.btn-secondario {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent; color: var(--bianco);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 0.18em;
  padding: 0.9rem 2.2rem; border-radius: 999px;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  margin-left: 1rem;
}
.btn-secondario:hover {
  border-color: var(--verde); color: var(--verde);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE HOME
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .prodotto-griglia { grid-template-columns: 1fr; gap: 5rem; }
  .step-griglia { grid-template-columns: 1fr; gap: 1.5rem; }
  .numeri-griglia { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 600px) {
  .sezione-prodotto { padding: 4rem 1.2rem; }
  .btn-secondario { margin-left: 0; margin-top: 0.8rem; }
  .cta-box .pulsanti { display: flex; flex-direction: column; align-items: center; gap: 0; }
}


/* ══════════════════════════════════════════════════════
   GALLERIA IMMAGINI NEL PANNELLO HOTSPOT
   Sostituisce il vecchio blocco immagine singola.
══════════════════════════════════════════════════════ */

/* Wrapper galleria */
.hs-galleria {
  position: relative;
  width: 100%;
  background: #0d0d0d;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* Box immagine — aspect ratio più alto per dare più spazio visivo */
.hs-gall-img-box {
  width: 100%;
  aspect-ratio: 4 / 3;   /* da 16/9 a 4/3: più alto, più spazio per l'immagine */
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

/* Immagine — object-fit:cover con scale ridotto via padding:
   visibile quasi per intero ma con zoom leggero per riempire il box */
.hs-gall-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: none;
  transform: scale(0.92);   /* zoom out: mostra ~8% di contorno in più rispetto al cover puro */
  transform-origin: center;
  transition: opacity 0.25s ease;
  background: #0a0a0a;
}

/* Placeholder immagine mancante */
.hs-gall-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.4rem;
  color: rgba(245,245,240,0.25);
  font-size: 0.8rem; letter-spacing: 0.1em;
  font-family: 'Barlow', sans-serif;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.01) 0px,
    rgba(255,255,255,0.01) 1px,
    transparent 1px, transparent 14px
  );
}

/* Frecce navigazione */
.hs-gall-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: #f5f5f0; font-size: 1.2rem; line-height: 1;
  cursor: pointer; z-index: 5;
  display: none;   /* mostrato via JS solo se >1 img */
  align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}
.hs-gall-btn:hover:not(:disabled) {
  background: rgba(46,204,113,0.25);
  border-color: rgba(46,204,113,0.5);
}
.hs-gall-btn:disabled { opacity: 0.3; cursor: default; }
.hs-gall-prev { left: 8px; }
.hs-gall-next { right: 8px; }

/* Puntini indicatori */
.hs-gall-dots {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  display: none;   /* mostrato via JS solo se >1 img */
  gap: 5px;
  align-items: center; justify-content: center;
  z-index: 5;
}
.hs-dot-ind {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.hs-dot-ind.attivo {
  background: #2ecc71;
  transform: scale(1.3);
}
.hs-dot-ind:hover { background: rgba(255,255,255,0.6); }

/* Contatore foto nel tooltip */
.tt-multi {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #2ecc71; opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════
   PANNELLO DETTAGLIO HOTSPOT
   Appare al click su un hotspot — mostra
   immagine di dettaglio + titolo + descrizione
═══════════════════════════════════════════════════════ */

/* Overlay scuro dietro il pannello */
.hs-pannello-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hs-pannello-overlay.aperto { display: block; }

/* Pannello */
.hs-pannello {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(540px, 92vw);
  max-height: 88vh;
  background: #141414;
  border: 1px solid rgba(46,204,113,0.3);
  border-radius: 20px;
  z-index: 9100;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(46,204,113,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34,1.2,0.64,1);
  outline: none;
}
.hs-pannello.aperto {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}

/* Bottone chiudi */
.hs-pannello-chiudi {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #f5f5f0;
  font-size: 1.1rem;
  font-weight: 400;
  font-family: 'Barlow', sans-serif;
  cursor: pointer; z-index: 9200;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1;
  padding: 0;
}
.hs-pannello-chiudi:hover {
  background: rgba(231,76,60,0.3);
  border-color: rgba(231,76,60,0.7);
  color: #fff;
}

/* Zona immagine */
.hs-pannello-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0d0d;
  position: relative; flex-shrink: 0;
  overflow: hidden;
}
.hs-pannello-img {
  width: 100%; height: 100%;
  object-fit: cover; display: none;
}
.hs-pannello-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.5rem;
  color: rgba(245,245,240,0.3);
  font-size: 0.82rem; letter-spacing: 0.1em;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.01) 0px,
    rgba(255,255,255,0.01) 1px,
    transparent 1px,
    transparent 12px
  );
}

/* Corpo testo */
.hs-pannello-corpo {
  padding: 1.6rem 1.8rem 1.8rem;
  overflow-y: auto;
  flex: 1;
}
.hs-pannello-icona {
  font-size: 2rem; display: block; margin-bottom: 0.6rem;
}
.hs-pannello-titolo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem; letter-spacing: 0.08em;
  color: #2ecc71; margin-bottom: 0.8rem;
  line-height: 1.1;
}
.hs-pannello-desc {
  font-size: 0.92rem; color: rgba(245,245,240,0.72);
  line-height: 1.7; margin-bottom: 0.8rem;
}
.hs-pannello-opt {
  display: none;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: #e74c3c; border: 1px solid rgba(231,76,60,0.4);
  padding: 0.18rem 0.6rem; border-radius: 999px;
}

/* "+" nel tooltip per indicare che si può cliccare */
.tooltip-cta {
  display: block; margin-top: 0.5rem;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: #2ecc71; opacity: 0.8;
}

/* Mobile */
@media (max-width: 540px) {
  .hs-pannello {
    top: auto; bottom: 0; left: 0; right: 0;
    transform: translateY(20px);
    width: 100%; max-height: 80vh;
    border-radius: 20px 20px 0 0;
  }
  .hs-pannello.aperto { transform: translateY(0); }
}
