/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 07 2026 | 15:22:05 */
/* =====================================================================
   DAVIDE GHIDELLI · CSS PAGINA HOME
   Richiede: dg-global.css (variabili e classi condivise)

   INDICE
   01. Hero
   ===================================================================== */


/* =====================================================================
   01. HERO
   Container: classe .dg-hero, ID #hero
   Colonna destra: widget HTML con la dashboard (.dg-shop)
   ===================================================================== */

/* I KPI sporgono dalla dashboard: niente scroll orizzontale su mobile */
.dg-hero { overflow-x: clip; }

/* ---------- Dashboard: struttura ---------- */
.dg-shop {
  position: relative;
  width: 100%;
  font-family: var(--dg-sans);
  /* palette chiara in stile admin Shopify, solo dentro la dashboard */
  --s-bg: #F1F1F1;
  --s-card: #FFFFFF;
  --s-text: #303030;
  --s-muted: #616161;
  --s-border: #E3E3E3;
  --s-green: #29845A;
}
.dg-shop__win {
  background: var(--s-bg);
  border-radius: var(--dg-radius-l);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px rgba(255, 106, 19, .18);
  color: var(--s-text);
}

/* Barra superiore scura */
.dg-shop__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #1A1A1A; padding: 10px 14px;
}
.dg-shop__search {
  flex: 1; max-width: 220px; margin: 0 auto;
  background: #303030; color: #8A8A8A; border-radius: 8px;
  font-size: 12px; padding: 6px 10px;
}
.dg-shop__avatar {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: var(--dg-orange); color: var(--dg-black);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

/* Corpo: menu laterale + contenuto */
.dg-shop__body { display: grid; grid-template-columns: 112px 1fr; }
.dg-shop__nav {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 8px; border-right: 1px solid var(--s-border);
  font-size: 12px; font-weight: 500; color: var(--s-muted);
}
.dg-shop__nav span { padding: 6px 8px; border-radius: 8px; }
.dg-shop__nav .is-active { background: var(--s-card); color: var(--s-text); font-weight: 600; }

.dg-shop__main { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dg-shop__head { display: flex; align-items: center; justify-content: space-between; }
.dg-shop__head b { font-size: 16px; font-weight: 700; }
.dg-shop__head span {
  font-size: 11px; color: var(--s-muted);
  background: var(--s-card); border: 1px solid var(--s-border); border-radius: 8px; padding: 4px 8px;
}

/* Riquadri metriche */
.dg-shop__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dg-shop__tile,
.dg-shop__chart {
  background: var(--s-card); border-radius: 12px; padding: 10px 12px;
  box-shadow: 0 1px 0 var(--s-border);
}
.dg-shop__tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dg-shop__tile span,
.dg-shop__chart span { font-size: 11px; color: var(--s-muted); }
.dg-shop__tile b { font-size: 16px; font-weight: 700; white-space: nowrap; }
.dg-shop__tile em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--s-green); }

/* Grafico */
.dg-shop__chart svg { display: block; width: 100%; height: 110px; margin-top: 6px; overflow: visible; }
.dg-shop__grid { stroke: var(--s-border); stroke-width: 1; }
.dg-shop__prev {
  fill: none; stroke: #B5B5B5; stroke-width: 2; stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}
.dg-shop__area { fill: url(#dgShopArea); opacity: 0; animation: dgFade .8s ease-out 1.4s forwards; }
.dg-shop__line {
  fill: none; stroke: var(--dg-orange); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: dgDraw 1.6s ease-out .4s forwards;
  vector-effect: non-scaling-stroke;
}

/* ---------- KPI che escono dalla dashboard ---------- */
.dg-shop__kpi {
  position: absolute; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--dg-surface); color: var(--dg-white);
  border: 1px solid var(--dg-line); border-radius: 14px;
  padding: 12px 16px; min-width: 150px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  animation: dgFloat 5s ease-in-out infinite;
}
.dg-shop__kpi span {
  font-family: var(--dg-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--dg-grey);
}
.dg-shop__kpi b { font-size: 26px; font-weight: 700; line-height: 1.1; }
.dg-shop__kpi em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--dg-orange); }

/* Il ROAS è il KPI in evidenza: arancione con testo nero (regola del kit) */
.dg-shop__kpi--2 { background: var(--dg-orange); border-color: var(--dg-orange); color: var(--dg-black); }
.dg-shop__kpi--2 span,
.dg-shop__kpi--2 em { color: var(--dg-black); }

/* Posizioni desktop */
.dg-shop__kpi--1 { top: 58%;  left: -48px;  animation-delay: 0s; }
.dg-shop__kpi--2 { top: -24px; right: -28px; animation-delay: 1.2s; }
.dg-shop__kpi--3 { bottom: -28px; right: 12%; animation-delay: 2.4s; }

/* ---------- Animazioni ---------- */
@keyframes dgDraw  { to { stroke-dashoffset: 0; } }
@keyframes dgFade  { to { opacity: 1; } }
@keyframes dgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Tablet (fino a 1024px) ---------- */
@media (max-width: 1024px) {
  .dg-shop { max-width: 640px; }
  .dg-shop__kpi--1 { left: -16px; }
  .dg-shop__kpi--2 { right: -16px; }
}

/* ---------- Mobile (fino a 767px) ---------- */
@media (max-width: 767px) {
  .dg-shop__body { grid-template-columns: 1fr; }
  .dg-shop__nav { display: none; }
  .dg-shop__main { padding: 12px; }
  .dg-shop__tiles { grid-template-columns: repeat(2, 1fr); }
  .dg-shop__tile:nth-child(3) { display: none; }
  .dg-shop__chart svg { height: 90px; }

  .dg-shop__kpi { min-width: 0; padding: 8px 12px; border-radius: 12px; }
  .dg-shop__kpi span { font-size: 9px; }
  .dg-shop__kpi b { font-size: 18px; }
  .dg-shop__kpi em { font-size: 11px; }

  .dg-shop__kpi--1 { top: auto; bottom: -22px; left: -4px; }
  .dg-shop__kpi--2 { top: -20px; right: -4px; }
  .dg-shop__kpi--3 { display: none; }
}

/* =====================================================================
   02. BIVIO
   Container: classe .dg-section, ID #bivio
   Widget HTML: .dg-choices con 2 card .dg-choice (bottoni)
   Logica: dg-home.js
   ===================================================================== */

/* Griglia delle 2 card */
.dg-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Card di scelta. I selettori doppi battono lo stile "Pulsanti"
   del kit Elementor, che si applica a tutti i <button> */
.dg-choices button.dg-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  width: 100%; margin: 0; text-align: left; cursor: pointer;
  background: var(--dg-surface);
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-radius-l);
  padding: 32px;
  color: var(--dg-white);
  font: inherit; letter-spacing: normal; text-transform: none;
  box-shadow: none;
  transition: border-color .25s ease, transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.dg-choices button.dg-choice:hover,
.dg-choices button.dg-choice:focus-visible {
  background: var(--dg-surface);
  color: var(--dg-white);
  border-color: var(--dg-orange-light);
  transform: translateY(-2px);
  outline: none;
}

/* Contenuto della card */
.dg-choice__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 8px;
  border-radius: var(--dg-radius-s);
  border: 1px solid var(--dg-line);
  color: var(--dg-orange);
}
.dg-choice__icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.dg-choice__tag {
  font-family: var(--dg-mono); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--dg-orange);
}
.dg-choice__title {
  /* font globale H3 */
  font-family: var(--e-global-typography-e398af7-font-family, var(--dg-sans));
  font-size: var(--e-global-typography-e398af7-font-size, 24px);
  font-weight: var(--e-global-typography-e398af7-font-weight, 600);
  line-height: var(--e-global-typography-e398af7-line-height, 1.25);
  color: var(--dg-white);
  text-wrap: balance;
}
.dg-choice__text { font-size: 16px; line-height: 1.5; color: var(--dg-grey); }
.dg-choice__cta {
  margin-top: auto; padding-top: 12px;
  font-size: 15px; font-weight: 600; color: var(--dg-orange);
}
.dg-choice__cta span { display: inline-block; transition: transform .25s ease; }
.dg-choice:hover .dg-choice__cta span { transform: translateX(4px); }

/* Stato: card scelta */
.dg-choices button.dg-choice.is-active {
  border-color: var(--dg-orange);
  box-shadow: 0 0 40px rgba(255, 106, 19, .18);
}
.dg-choice.is-active .dg-choice__icon { background: var(--dg-orange); border-color: var(--dg-orange); color: var(--dg-black); }
.dg-choice.is-active .dg-choice__cta { color: var(--dg-white); }

/* Stato: card non scelta (si spegne, ma resta cliccabile) */
.dg-choices button.dg-choice.is-dim { opacity: .5; }
.dg-choices button.dg-choice.is-dim:hover { opacity: 1; }

/* Percorsi: nascosti finché non si sceglie una card.
   Nell'editor Elementor restano sempre visibili, così li modifichi */
body:not(.elementor-editor-active) .dg-path:not(.is-open) { display: none; }
.dg-path.is-open { animation: dgFadeUp .5s ease-out; }

/* Tablet */
@media (max-width: 1024px) {
  .dg-choices { gap: 16px; }
  .dg-choices button.dg-choice { padding: 24px; }
}

/* Mobile: card una sotto l'altra */
@media (max-width: 767px) {
  .dg-choices { grid-template-columns: 1fr; gap: 12px; }
  .dg-choices button.dg-choice { padding: 20px; gap: 8px; }
  .dg-choice__icon { width: 40px; height: 40px; margin-bottom: 4px; }
  .dg-choice__icon svg { width: 20px; height: 20px; }
  .dg-choice__cta { padding-top: 8px; }
}