:root{
  --dg-primary:#C5A90F;  /* oro Digitive */
  --dg-primary-dark:#A08A0C;  /* oro Digitive più scuro per focus */
  --dg-ink:#000000;      /* testo principale (nero) */
  --dg-muted:#757575;    /* testo secondario (grigio medio) */
  --dg-bg:#F7F7F7;       /* sfondo chiaro */
  --dg-card:#FFFFFF;     /* pannelli/box */
  --radius:14px;
  --focus-outline:2px solid var(--dg-primary);
  --focus-offset:2px;
}

*{box-sizing:border-box}
html,body{
  margin:0; padding:0;
  font-family:Roboto,system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  color:var(--dg-ink); background:#fff;
}
img{max-width:100%;display:block}
.container{max-width:1100px;margin:0 auto;padding:0 20px}

/* NAV */
.nav-wrap{position:sticky;top:0;z-index:50;background:transparent}
.nav{
  margin:16px auto; padding:10px 14px; border-radius:16px;
  backdrop-filter:saturate(140%) blur(12px);
  background:rgba(255,255,255,.78);
  display:flex;align-items:center;justify-content:space-between;
  border:1px solid rgba(0,0,0,.06)
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.logo{height:28px}
.brand-text{font-weight:700;color:var(--dg-ink)}
.menu{list-style:none;display:flex;gap:18px;margin:0;padding:0}
.menu a{color:var(--dg-ink);text-decoration:none;font-weight:500;position:relative;transition:all 0.3s ease}
.menu a:hover{
  color:var(--dg-muted);
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-color:var(--dg-muted);
}
.menu a:hover::after{
  content:'';
  position:absolute;
  bottom:-2px;
  left:0;
  right:0;
  height:2px;
  background:var(--dg-muted);
  box-shadow:0 2px 8px rgba(117,117,117,0.3);
  transform:scaleX(1);
  transition:transform 0.3s ease;
}
.menu a::after{
  content:'';
  position:absolute;
  bottom:-2px;
  left:0;
  right:0;
  height:2px;
  background:var(--dg-muted);
  box-shadow:0 2px 8px rgba(117,117,117,0.3);
  transform:scaleX(0);
  transition:transform 0.3s ease;
}
.menu a:focus{
  outline:var(--focus-outline);
  outline-offset:var(--focus-offset);
  border-radius:6px;
}
.hamburger{display:none;border:0;background:transparent;font-size:22px;cursor:pointer}
.hamburger:focus{
  outline:var(--focus-outline);
  outline-offset:var(--focus-offset);
  border-radius:6px;
}

/* BUTTONS */
.btn{
  display:inline-block;padding:10px 16px;border-radius:10px;
  text-decoration:none;font-weight:600;border:1px solid transparent
}
.btn-primary{background:var(--dg-primary);color:#fff;border-color:var(--dg-primary)}
.btn-primary:hover{filter:brightness(1.05)}
.btn-primary:focus{
  outline:var(--focus-outline);
  outline-offset:var(--focus-offset);
  background:var(--dg-primary-dark);
}
.btn-ghost{border-color:rgba(0,0,0,.12);color:var(--dg-ink);background:#fff}
.btn-ghost:hover{background:#fafafa}
.btn-ghost:focus{
  outline:var(--focus-outline);
  outline-offset:var(--focus-offset);
  background:#f5f5f5;
}

/* HERO */
.hero{
  position:relative;padding:110px 0 90px;
  background:linear-gradient(180deg,var(--dg-bg),transparent)
}
.hero-inner{position:relative;z-index:2;text-align:center}
.hero h1{font-size:42px;line-height:1.1;margin:0 0 12px}
.hero p{font-size:18px;margin:0 0 20px;color:var(--dg-muted)}
.cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.hero-bg{
  position:absolute;inset:0;
  background:
    radial-gradient(1200px 400px at 50% 100%, rgba(197,169,15,.18), transparent 60%),
    url('../img/bg-fade.jpg') no-repeat center/cover;
  opacity:.65;animation:fadeUp .9s ease .15s both
}
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:.65;transform:none}}

/* FEATURES */
.features{padding:70px 0 40px;background:#fff}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{
  background:var(--dg-card);
  border-radius:var(--radius);
  box-shadow:0 8px 26px rgba(0,0,0,.06);
  padding:22px;
  border:1px solid rgba(0,0,0,.05);
  transition:all 0.3s ease;
  position:relative;
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 40px rgba(197,169,15,0.2);
  border-color:rgba(197,169,15,0.3);
}
.card .icn{width:44px;height:44px;margin-bottom:10px}

/* Lottie animations */
.lottie-container{
  width:44px;
  height:44px;
  margin-bottom:10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Card animations */
.card{
  transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform:translateY(20px);
  opacity:0;
}

.card-fade-in{
  transform:translateY(0);
  opacity:1;
}

.card-glow{
  box-shadow:
    0 8px 26px rgba(0,0,0,.06),
    0 0 0 1px rgba(197,169,15,.1),
    0 0 20px rgba(197,169,15,.15),
    0 0 40px rgba(197,169,15,.1);
  transform:translateY(-2px);
}

/* PAGE HERO */
.page-hero{padding:70px 0;background:var(--dg-bg)}
.page-hero h1{margin:0 0 8px;font-size:36px}
.page-hero p{color:var(--dg-muted)}

/* PROJECTS */
.projects-list{padding:60px 0}



/* MODAL */
.modal{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:9999;
  opacity:0;
  visibility:hidden;
  transition:opacity 0.3s ease, visibility 0.3s ease;
  pointer-events:none;
}

.modal--open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.modal__overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(2px);
}

.modal__dialog{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:calc(100% - 48px);
  max-width:500px;
  background:#fff;
  border-radius:16px;
  box-shadow:0 24px 80px rgba(0,0,0,.4);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  max-height:60vh;
}

.modal__header{
  position:relative;
  height:200px;
  overflow:hidden;
}

.modal__image{
  width:100%;
  height:100%;
  object-fit:cover;
}

.modal__close{
  position:absolute;
  top:20px;
  right:20px;
  width:44px;
  height:44px;
  background:rgba(255,255,255,.95);
  border:none;
  border-radius:50%;
  font-size:28px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.2s ease;
  z-index:10;
}

.modal__close:hover{
  background:#fff;
  transform:scale(1.1);
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.modal__body{
  padding:32px;
  flex:1;
  overflow-y:auto;
}

.modal__title{
  margin:0 0 16px;
  font-size:24px;
  font-weight:600;
  color:var(--dg-ink);
  line-height:1.2;
}

.modal__content{
  font-size:15px;
  line-height:1.6;
  color:var(--dg-ink);
  margin-bottom:0;
}

.modal__footer{
  padding:24px 32px;
  border-top:1px solid rgba(0,0,0,.08);
  display:flex;
  gap:12px;
  justify-content:flex-end;
  background:rgba(0,0,0,.02);
}

.modal__cta{
  background:var(--dg-primary);
  color:#fff;
  padding:14px 28px;
  border-radius:var(--radius);
  text-decoration:none;
  font-weight:500;
  font-size:15px;
  transition:all 0.2s ease;
  box-shadow:0 2px 8px rgba(197,169,15,0.3);
}

.modal__cta:hover{
  background:var(--dg-primary-dark);
  transform:translateY(-2px);
  box-shadow:0 4px 16px rgba(197,169,15,0.4);
}

.modal__close-btn{
  background:transparent;
  color:var(--dg-muted);
  border:1px solid rgba(0,0,0,.12);
  padding:14px 28px;
  border-radius:var(--radius);
  cursor:pointer;
  font-weight:500;
  font-size:15px;
  transition:all 0.2s ease;
}

.modal__close-btn:hover{
  background:rgba(0,0,0,.05);
  color:var(--dg-ink);
  border-color:rgba(0,0,0,.2);
}
.proj{
  display:flex;gap:16px;align-items:flex-start;background:#fff;
  border:1px solid rgba(0,0,0,.06);border-radius:var(--radius);
  padding:18px;box-shadow:0 8px 26px rgba(0,0,0,.04);
  transition:all 0.3s ease;
  position:relative;
}

.proj:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 40px rgba(197,169,15,0.2);
  border-color:rgba(197,169,15,0.3);
  background:rgba(197,169,15,0.05);
  cursor:pointer;
}

.proj-glow{
  box-shadow:
    0 8px 26px rgba(0,0,0,.04),
    0 0 0 1px rgba(197,169,15,.1),
    0 0 20px rgba(197,169,15,.15),
    0 0 40px rgba(197,169,15,.1);
  transform:translateY(-2px);
}
.proj-icn{width:40px;height:40px}
.proj h3{margin:0 0 6px}
.proj p{margin:0;color:var(--dg-muted)}
.proj a{color:var(--dg-primary);text-decoration:none}
.proj a:hover{text-decoration:underline}
.proj a:focus{
  outline:var(--focus-outline);
  outline-offset:var(--focus-offset);
  border-radius:4px;
  text-decoration:underline;
}

/* NEWSLETTER */
.newsletter{padding:40px 0 80px;background:#fff}
.newsletter h2{text-align:center;margin:0 0 12px}
.section-subtitle{
  text-align:center;
  color:var(--dg-muted);
  font-size:18px;
  margin:0 0 40px;
  line-height:1.5;
}

/* CURATED LINKS */
.curated-links{
  margin-top:20px;
}
.curated-links .loading{
  text-align:center;
  color:var(--dg-muted);
  font-size:16px;
  padding:40px 0;
}
.curated-links .error{
  text-align:center;
  color:var(--dg-muted);
  font-size:16px;
  padding:40px 0;
  background:rgba(0,0,0,.02);
  border-radius:var(--radius);
  border:1px solid rgba(0,0,0,.05);
}
.curated-grid{
  display:flex;
  gap:20px;
  margin-top:20px;
  justify-content:center;
}
.curated-card{
  flex:1;
  max-width:300px;
  background:var(--dg-card);
  border-radius:var(--radius);
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  border:1px solid rgba(0,0,0,.06);
  overflow:hidden;
  transition:all 0.3s ease;
  text-decoration:none;
  color:inherit;
  display:block;
}
.curated-card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}
.curated-card-image{
  width:100%;
  height:120px;
  background:var(--dg-muted);
  position:relative;
  overflow:hidden;
}
.curated-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform 0.3s ease;
}
.curated-card:hover .curated-card-image img{
  transform:scale(1.1);
}
.curated-card-content{
  padding:16px;
}
.curated-card h3{
  font-size:16px;
  line-height:1.3;
  margin:0 0 8px;
  color:var(--dg-ink);
  font-weight:600;
}
.curated-card p{
  font-size:13px;
  line-height:1.4;
  margin:0;
  color:var(--dg-muted);
}

/* METHOD SECTION */
.method-section{
  padding:32px 0;
  background:var(--dg-bg);
}

.method-section h2{
  text-align:center;
  margin:0 0 16px;
  font-size:36px;
  font-weight:600;
  color:var(--dg-ink);
}

.method-subtitle{
  text-align:center;
  color:var(--dg-muted);
  font-size:18px;
  margin:0 0 60px;
  line-height:1.5;
}

/* TIMELINE */
.timeline{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:40px;
  position:relative;
  max-width:1000px;
  margin:0 auto;
}

.timeline::before{
  content:'';
  position:absolute;
  top:40px;
  left:0;
  right:0;
  height:2px;
  background:linear-gradient(90deg, var(--dg-primary) 0%, var(--dg-primary-dark) 100%);
  z-index:1;
}

.timeline-step{
  flex:1;
  text-align:center;
  position:relative;
  z-index:2;
  cursor:pointer;
  transition:all 0.3s ease;
}

.step-icon{
  width:80px;
  height:80px;
  background:#fff;
  border:3px solid var(--dg-primary);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 20px;
  color:var(--dg-primary);
  transition:all 0.3s ease;
  box-shadow:0 4px 16px rgba(0,0,0,.1);
}

.timeline-step:hover .step-icon{
  background:var(--dg-primary);
  color:#fff;
  transform:scale(1.1);
  box-shadow:0 8px 24px rgba(197,169,15,0.3);
}

.timeline-step h3{
  margin:0 0 8px;
  font-size:20px;
  font-weight:600;
  color:var(--dg-ink);
}

.step-content{
  position:absolute;
  top:120px;
  left:50%;
  transform:translateX(-50%);
  background:#fff;
  padding:16px 20px;
  border-radius:12px;
  box-shadow:0 8px 32px rgba(0,0,0,.15);
  border:1px solid rgba(0,0,0,.08);
  width:280px;
  opacity:0;
  visibility:hidden;
  transition:all 0.3s ease;
  z-index:10;
}

.step-content::before{
  content:'';
  position:absolute;
  top:-8px;
  left:50%;
  transform:translateX(-50%);
  width:0;
  height:0;
  border-left:8px solid transparent;
  border-right:8px solid transparent;
  border-bottom:8px solid #fff;
}

.step-content p{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:var(--dg-ink);
}

.timeline-step:hover .step-content{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(8px);
}

/* HIGHLIGHTS */
.highlights{
  padding:40px 0 20px;
  background:#fff;
}

.highlights-bubbles{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:40px;
  flex-wrap:wrap;
}

.highlight-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  max-width:200px;
}

.highlight-bubble{
  position:relative;
  width:120px;
  height:120px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all 0.3s ease;
  box-shadow:0 4px 16px rgba(0,0,0,.1);
  animation:bounce 3s ease-in-out infinite;
  margin-bottom:16px;
}

.highlight-bubble:nth-child(2){
  animation-delay:0.5s;
}

.highlight-bubble:nth-child(3){
  animation-delay:1s;
}

.highlight-bubble:hover{
  transform:scale(1.1);
  box-shadow:0 8px 32px rgba(0,0,0,.2);
  animation-play-state:paused;
}

@keyframes bounce{
  0%, 20%, 50%, 80%, 100%{
    transform:translateY(0);
  }
  40%{
    transform:translateY(-8px);
  }
  60%{
    transform:translateY(-4px);
  }
}

.highlight-grey{
  background:#757575;
  color:#fff;
}

.highlight-white{
  background:#fff;
  border:2px solid rgba(0,0,0,.1);
  color:var(--dg-ink);
}

.highlight-gold{
  background:var(--dg-primary);
  color:var(--dg-ink);
}

.bubble-number{
  font-size:28px;
  font-weight:700;
  line-height:1;
}

.highlight-text{
  font-size:14px;
  line-height:1.4;
  margin-bottom:8px;
  color:var(--dg-ink);
  font-weight:500;
}

.highlight-source{
  font-size:12px;
  color:var(--dg-muted);
  font-weight:400;
}

/* COUNTERS */
.counters{
  padding:40px 0;
  background:#fff;
}

.counters h2{
  text-align:center;
  margin:0 0 30px;
  font-size:28px;
  font-weight:600;
  color:var(--dg-ink);
}

.counters-bubbles{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:30px;
  flex-wrap:wrap;
}

.counter-bubble{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  cursor:pointer;
  transition:all 0.3s ease;
  animation:bounce 3s ease-in-out infinite;
}

.counter-bubble:nth-child(2){
  animation-delay:0.5s;
}

.counter-bubble:nth-child(3){
  animation-delay:1s;
}

.counter-bubble:hover{
  transform:scale(1.1);
  animation-play-state:paused;
}

.counter-bubble .bubble-number{
  width:80px;
  height:80px;
  border-radius:50%;
  background:var(--dg-primary);
  color:var(--dg-ink);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:700;
  margin-bottom:12px;
  box-shadow:0 4px 16px rgba(0,0,0,.1);
}

.bubble-label{
  font-size:12px;
  color:var(--dg-muted);
  font-weight:500;
  line-height:1.3;
}

/* CTA SECTION */
.cta-section{
  padding:40px 0;
  background:var(--dg-bg);
  text-align:center;
}

.cta-section h2{
  text-align:center;
  margin:0 0 16px;
  font-size:36px;
  font-weight:600;
  color:var(--dg-ink);
}

.cta-subtitle{
  text-align:center;
  color:var(--dg-muted);
  font-size:18px;
  margin:0 0 40px;
  line-height:1.5;
}

.cta-buttons{
  display:flex;
  gap:16px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  text-align:center;
}

/* BLOG PREVIEW */
.blog-preview{
  padding:40px 0;
  background:var(--dg-bg);
}

.blog-preview h2{
  text-align:center;
  margin:0 0 40px;
  font-size:36px;
  font-weight:600;
  color:var(--dg-ink);
}

.blog-preview-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.blog-preview-card{
  background:#fff;
  border-radius:var(--radius);
  box-shadow:0 4px 16px rgba(0,0,0,.08);
  overflow:hidden;
  transition:all 0.3s ease;
}

.blog-preview-card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 32px rgba(0,0,0,.12);
}

.blog-preview-content{
  padding:24px;
}

.blog-preview-content h3{
  margin:0 0 12px;
  font-size:16px;
  font-weight:600;
  color:var(--dg-ink);
  line-height:1.3;
}

.blog-preview-content p{
  margin:0 0 16px;
  font-size:14px;
  line-height:1.5;
  color:var(--dg-muted);
}

.blog-preview-link{
  color:var(--dg-primary);
  text-decoration:none;
  font-weight:500;
  font-size:14px;
  transition:color 0.2s ease;
}

.blog-preview-link:hover{
  color:var(--dg-primary-dark);
}

/* CONTACT MODAL */
.contact-modal{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:9999;
  opacity:0;
  visibility:hidden;
  transition:all 0.3s ease;
}

.contact-modal--open{
  opacity:1;
  visibility:visible;
}

.contact-modal__overlay{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.5);
  backdrop-filter:blur(4px);
}

.contact-modal__dialog{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  background:#fff;
  border-radius:var(--radius);
  box-shadow:0 20px 60px rgba(0,0,0,0.3);
  max-width:400px;
  width:calc(100% - 40px);
  max-height:80vh;
  overflow-y:auto;
}

.contact-modal__close{
  position:absolute;
  top:16px;
  right:16px;
  width:32px;
  height:32px;
  border:none;
  background:transparent;
  font-size:24px;
  cursor:pointer;
  color:var(--dg-muted);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.2s ease;
}

.contact-modal__close:hover{
  background:rgba(0,0,0,0.1);
  color:var(--dg-ink);
}

.contact-modal__content{
  padding:32px;
}

.contact-modal__content h2{
  margin:0 0 24px;
  font-size:24px;
  font-weight:600;
  color:var(--dg-ink);
  text-align:center;
}

.contact-info{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.contact-item{
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px;
  border-radius:8px;
  background:var(--dg-bg);
  transition:all 0.2s ease;
}

.contact-item:hover{
  background:rgba(197,169,15,0.1);
  transform:translateY(-2px);
}

.contact-icon{
  font-size:24px;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--dg-primary);
  border-radius:50%;
  color:#fff;
  flex-shrink:0;
}

.contact-details h3{
  margin:0 0 4px;
  font-size:14px;
  font-weight:500;
  color:var(--dg-muted);
  text-transform:uppercase;
  letter-spacing:0.5px;
}

.contact-details a{
  color:var(--dg-ink);
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  transition:color 0.2s ease;
}

.contact-details a:hover{
  color:var(--dg-primary);
}

.contact-details a:focus{
  outline:var(--focus-outline);
  outline-offset:var(--focus-offset);
  border-radius:4px;
}

/* COOKIE BANNER */
.cookie-banner{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(10px);
  border-top:1px solid rgba(0,0,0,0.1);
  padding:20px;
  z-index:9998;
  transform:translateY(100%);
  transition:transform 0.4s ease;
  box-shadow:0 -4px 20px rgba(0,0,0,0.1);
}

.cookie-banner--visible{
  transform:translateY(0);
}

.cookie-banner__content{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
}

.cookie-banner__text{
  flex:1;
  min-width:300px;
}

.cookie-banner__text h3{
  margin:0 0 8px;
  font-size:18px;
  font-weight:600;
  color:var(--dg-ink);
}

.cookie-banner__text p{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:var(--dg-muted);
}

.cookie-banner__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.cookie-btn{
  padding:10px 16px;
  border:none;
  border-radius:8px;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  transition:all 0.2s ease;
  text-decoration:none;
  display:inline-block;
  text-align:center;
}

.cookie-btn--accept{
  background:var(--dg-primary);
  color:#fff;
}

.cookie-btn--accept:hover{
  background:var(--dg-primary-dark);
  transform:translateY(-1px);
}

.cookie-btn--reject{
  background:transparent;
  color:var(--dg-muted);
  border:1px solid rgba(0,0,0,0.2);
}

.cookie-btn--reject:hover{
  background:rgba(0,0,0,0.05);
  color:var(--dg-ink);
}

.cookie-btn--preferences{
  background:transparent;
  color:var(--dg-primary);
  border:1px solid var(--dg-primary);
}

.cookie-btn--preferences:hover{
  background:var(--dg-primary);
  color:#fff;
}

.cookie-btn--save{
  background:var(--dg-primary);
  color:#fff;
}

.cookie-btn--save:hover{
  background:var(--dg-primary-dark);
}

.cookie-btn--cancel{
  background:transparent;
  color:var(--dg-muted);
  border:1px solid rgba(0,0,0,0.2);
}

.cookie-btn--cancel:hover{
  background:rgba(0,0,0,0.05);
  color:var(--dg-ink);
}

/* COOKIE PREFERENCES MODAL */
.cookie-preferences-modal{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:9999;
  opacity:0;
  visibility:hidden;
  transition:all 0.3s ease;
}

.cookie-preferences-modal--open{
  opacity:1;
  visibility:visible;
}

.cookie-preferences-modal__overlay{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.5);
  backdrop-filter:blur(4px);
}

.cookie-preferences-modal__dialog{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  background:#fff;
  border-radius:var(--radius);
  box-shadow:0 20px 60px rgba(0,0,0,0.3);
  max-width:500px;
  width:calc(100% - 40px);
  max-height:80vh;
  overflow-y:auto;
}

.cookie-preferences-modal__close{
  position:absolute;
  top:16px;
  right:16px;
  width:32px;
  height:32px;
  border:none;
  background:transparent;
  font-size:24px;
  cursor:pointer;
  color:var(--dg-muted);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.2s ease;
}

.cookie-preferences-modal__close:hover{
  background:rgba(0,0,0,0.1);
  color:var(--dg-ink);
}

.cookie-preferences-modal__content{
  padding:32px;
}

.cookie-preferences-modal__content h2{
  margin:0 0 16px;
  font-size:24px;
  font-weight:600;
  color:var(--dg-ink);
}

.cookie-preferences-modal__content p{
  margin:0 0 24px;
  font-size:16px;
  line-height:1.5;
  color:var(--dg-muted);
}

.cookie-options{
  display:flex;
  flex-direction:column;
  gap:20px;
  margin-bottom:32px;
}

.cookie-option{
  padding:20px;
  border:1px solid rgba(0,0,0,0.1);
  border-radius:12px;
  background:var(--dg-bg);
}

.cookie-option__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.cookie-option__header h3{
  margin:0;
  font-size:16px;
  font-weight:600;
  color:var(--dg-ink);
}

.cookie-option p{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:var(--dg-muted);
}

/* Cookie Toggle Switch */
.cookie-toggle{
  position:relative;
  display:inline-block;
  width:44px;
  height:24px;
}

.cookie-toggle input{
  opacity:0;
  width:0;
  height:0;
}

.cookie-toggle__slider{
  position:absolute;
  cursor:pointer;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background-color:rgba(0,0,0,0.2);
  transition:0.3s;
  border-radius:24px;
}

.cookie-toggle__slider:before{
  position:absolute;
  content:"";
  height:18px;
  width:18px;
  left:3px;
  bottom:3px;
  background-color:white;
  transition:0.3s;
  border-radius:50%;
}

.cookie-toggle input:checked + .cookie-toggle__slider{
  background-color:var(--dg-primary);
}

.cookie-toggle input:checked + .cookie-toggle__slider:before{
  transform:translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider{
  background-color:var(--dg-primary);
  opacity:0.6;
  cursor:not-allowed;
}

.cookie-preferences-modal__actions{
  display:flex;
  gap:12px;
  justify-content:flex-end;
}

/* FOOTER */
.footer{
  padding:50px 0;
  background:
    radial-gradient(600px 200px at 50% -20%, rgba(197,169,15,.12), transparent 60%),
    linear-gradient(180deg, rgba(197,169,15,0.1) 0%, rgba(197,169,15,0.05) 30%, rgba(255,255,255,0.8) 70%, #fff 100%),
    linear-gradient(180deg, #fff, var(--dg-bg))
}

.footer-content{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:40px;
  flex-wrap:wrap;
  gap:20px;
}

.footer-claim p{
  font-size:18px;
  font-weight:700;
  color:var(--dg-primary);
  margin:0;
  text-shadow:0 2px 4px rgba(197,169,15,0.3);
}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.foot-nav a{color:var(--dg-ink);text-decoration:none;margin-left:14px}
.foot-nav a:hover{color:var(--dg-primary)}
.foot-nav a:focus{
  outline:var(--focus-outline);
  outline-offset:var(--focus-offset);
  border-radius:4px;
}

/* BLOG */
.blog-content{
  padding:60px 0;
  background:#fff;
}
.coming-soon{
  text-align:center;
  max-width:600px;
  margin:0 auto;
  padding:40px 20px;
}
.coming-soon h2{
  font-size:32px;
  margin:0 0 16px;
  color:var(--dg-ink);
}
.coming-soon p{
  font-size:18px;
  line-height:1.6;
  margin:0 0 32px;
  color:var(--dg-muted);
}

/* BLOG GRID */
.blog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(350px, 1fr));
  gap:32px;
  margin-top:20px;
}
.blog-card{
  background:var(--dg-card);
  border-radius:var(--radius);
  box-shadow:0 8px 26px rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.05);
  overflow:hidden;
  transition:all 0.3s ease;
}
.blog-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 32px rgba(0,0,0,.12);
}
.blog-card img{
  width:100%;
  height:200px;
  object-fit:cover;
  transition:transform 0.3s ease;
}
.blog-card:hover .blog-post-thumbnail{
  transform:scale(1.05);
}
.blog-card-content{
  padding:24px;
}
.blog-card h3{
  font-size:20px;
  line-height:1.3;
  margin:0 0 12px;
  color:var(--dg-ink);
  font-weight:600;
}
.blog-card p{
  font-size:15px;
  line-height:1.5;
  margin:0 0 16px;
  color:var(--dg-muted);
}
.blog-meta{
  margin-bottom:20px;
}
.blog-meta time{
  font-size:14px;
  color:var(--dg-muted);
}

.blog-post{
  padding:60px 0;
  background:#fff;
}
.blog-post .container{
  max-width:900px;
}
.post-header{
  text-align:center;
  margin-bottom:40px;
}
.post-header h1{
  font-size:42px;
  line-height:1.2;
  margin:0 0 16px;
  color:var(--dg-ink);
}
.post-meta{
  color:var(--dg-muted);
  font-size:16px;
}
.post-meta time{
  margin-right:16px;
}
.post-content{
  max-width:800px;
  margin:0 auto;
  line-height:1.7;
  font-size:18px;
}
.post-content h2{
  font-size:28px;
  margin:40px 0 16px;
  color:var(--dg-ink);
}
.post-content h3{
  font-size:24px;
  margin:32px 0 12px;
  color:var(--dg-ink);
}
.post-content p{
  margin:0 0 20px;
  color:var(--dg-ink);
}
.post-content a{
  color:var(--dg-primary);
  text-decoration:none;
}
.post-content a:hover{
  text-decoration:underline;
}
.post-content a:focus{
  outline:var(--focus-outline);
  outline-offset:var(--focus-offset);
  border-radius:4px;
}

/* Blog post image cards - Detail view */
.blog-post-image-card{
  max-width:800px;
  margin:0 auto 32px;
  padding:16px;
  background:#fff;
  border-radius:12px;
  box-shadow:0 8px 32px rgba(197,169,15,0.15);
  border:1px solid rgba(197,169,15,0.2);
}

.blog-post-image{
  width:100%;
  height:auto;
  border-radius:8px;
  display:block;
  object-fit:cover;
}

/* Portrait images (taller than wide) */
.blog-post-image-card.portrait .blog-post-image{
  max-height:600px;
  width:auto;
  margin:0 auto;
  display:block;
}

/* Landscape images (wider than tall) */
.blog-post-image-card.landscape .blog-post-image{
  max-width:100%;
  max-height:400px;
}

/* Blog post thumbnails - List view */
.blog-post-thumbnail{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:8px;
  transition:transform 0.3s ease;
  display:block;
}
.post-footer{
  text-align:center;
  margin-top:60px;
  padding-top:40px;
  border-top:1px solid rgba(0,0,0,.1);
}

/* PRIVACY PAGE */
.privacy-content{
  padding:60px 0;
  background:#fff;
}
.privacy-text{
  max-width:800px;
  margin:0 auto;
  line-height:1.7;
}
.privacy-text h2{
  font-size:24px;
  margin:40px 0 16px;
  color:var(--dg-ink);
  font-weight:600;
}
.privacy-text h2:first-child{
  margin-top:0;
}
.privacy-text p{
  margin:0 0 20px;
  color:var(--dg-ink);
  font-size:16px;
}
.privacy-text ul{
  margin:0 0 20px;
  padding-left:20px;
}
.privacy-text li{
  margin:0 0 8px;
  color:var(--dg-ink);
  font-size:16px;
}
.privacy-text a{
  color:var(--dg-primary);
  text-decoration:none;
}
.privacy-text a:hover{
  text-decoration:underline;
}
.privacy-text a:focus{
  outline:var(--focus-outline);
  outline-offset:var(--focus-offset);
  border-radius:4px;
}

/* TABLET */
@media (max-width:1023px) and (min-width:600px){
  .curated-grid{
    flex-wrap:wrap;
    gap:16px;
  }
  .curated-card{
    flex:1 1 calc(50% - 8px);
    max-width:none;
  }
  

  
  /* Blog images tablet */
  .blog-post-thumbnail{
    height:180px;
  }
  .blog-post-image-card{
    margin:0 0 28px;
    padding:14px;
  }
  .blog-post-image-card.portrait .blog-post-image{
    max-height:500px;
  }
  .blog-post-image-card.landscape .blog-post-image{
    max-height:350px;
  }
}

/* MOBILE */
@media (max-width:900px){
  /* Typography improvements */
  .hero h1{
    font-size:38px;
    line-height:1.2;
    margin:0 0 16px;
  }
  .hero p{
    font-size:20px;
    line-height:1.5;
    margin:0 0 28px;
    color:var(--dg-muted);
  }
  .page-hero h1{
    font-size:36px;
    line-height:1.2;
    margin:0 0 12px;
  }
  .page-hero p{
    font-size:18px;
    line-height:1.5;
    color:var(--dg-muted);
  }
  
  /* Improved spacing */
  .hero{
    padding:80px 0 70px;
  }
  .page-hero{
    padding:60px 0;
  }
  .features{
    padding:60px 0;
  }
  .projects-list{
    padding:50px 0;
  }
  .newsletter{
    padding:60px 0;
  }
  
  /* CTA button improvements */
  .cta{
    display:flex;
    gap:16px;
    justify-content:center;
    flex-direction:column;
    align-items:center;
    margin-top:8px;
  }
  .cta .btn{
    min-width:200px;
    padding:14px 20px;
    font-size:16px;
  }
  
  /* Layout adjustments */
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .menu{display:none}
  .hamburger{display:block}
  body.menu-open .menu{
    display:flex;position:absolute;right:24px;top:64px;background:#fff;
    border:1px solid rgba(0,0,0,.06);border-radius:12px;padding:12px 14px;
    flex-direction:column;gap:10px
  }
  
  /* Container padding adjustment */
  .container{
    padding:0 16px;
  }
  
  /* Card improvements */
  .card{
    padding:24px;
  }
  .card .icn{
    width:48px;
    height:48px;
    margin-bottom:12px;
  }
  
  /* Blog mobile improvements */
  .coming-soon h2{
    font-size:28px;
  }
  .coming-soon p{
    font-size:16px;
  }
  .post-header h1{
    font-size:32px;
  }
  .post-content{
    font-size:16px;
    padding:0 16px;
  }
  .post-content h2{
    font-size:24px;
  }
  .post-content h3{
    font-size:20px;
  }
  
  /* Mobile menu improvements */
  .menu a:hover::after{
    display:none;
  }
  .menu a:hover{
    text-decoration:none;
    color:var(--dg-primary);
  }
  
  /* Curated links mobile */
  .curated-grid{
    flex-direction:column;
    gap:16px;
  }
  .curated-card{
    max-width:none;
  }
  .curated-card-image{
    height:140px;
  }
  .curated-card-content{
    padding:16px;
  }
  .curated-card h3{
    font-size:16px;
  }
  .curated-card p{
    font-size:13px;
  }
  .section-subtitle{
    font-size:16px;
    margin:0 0 30px;
  }
  
  /* Blog images mobile */
  .blog-post-thumbnail{
    height:160px;
  }
  .blog-post-image-card{
    margin:0 0 24px;
    padding:12px;
  }
  .blog-post-image-card.portrait .blog-post-image{
    max-height:400px;
  }
  .blog-post-image-card.landscape .blog-post-image{
    max-height:300px;
  }
}

/* Logo Digitive */
.logo {
  height: 90px;   /* aumenta da 40px a 60px o quello che preferisci */
  width: auto;    /* mantiene proporzioni */
}

/* TABLET */
@media (max-width:1023px) and (min-width:600px){

  
  /* Modal tablet */
  .modal__dialog{
    width:calc(100% - 32px);
    max-width:450px;
    max-height:75vh;
  }
  
  .modal__header{
    height:180px;
  }
  
  .modal__body{
    padding:24px;
  }
  
  .modal__title{
    font-size:22px;
  }
  
  .modal__content{
    font-size:15px;
  }
  
  .modal__footer{
    padding:20px 24px;
  }
}

/* MOBILE */
@media (max-width:599px){
  /* HIGHLIGHTS */
  .highlights-bubbles{gap:20px}
  .highlight-item{max-width:160px}
  .highlight-bubble{width:100px;height:100px;margin-bottom:12px}
  .bubble-number{font-size:24px}
  .highlight-text{font-size:12px}
  .highlight-source{font-size:10px}
  
  /* TIMELINE */
  .timeline{flex-direction:column;gap:32px}
  .timeline::before{display:none}
  .step-icon{width:60px;height:60px;margin-bottom:16px}
  .step-content{
    position:static;
    opacity:1;
    visibility:visible;
    transform:none;
    width:100%;
    margin-top:16px;
    left:auto;
    right:auto;
    max-width:none;
  }
  .step-content::before{display:none}
  
  /* COUNTERS */
  .counters-bubbles{gap:20px}
  .counter-bubble .bubble-number{width:60px;height:60px;font-size:20px}
  
  /* BLOG PREVIEW */
  .blog-preview-grid{grid-template-columns:1fr;gap:20px}
  .blog-preview-content{padding:24px}
  .blog-preview-content h3{font-size:15px}
  .blog-preview-content p{font-size:13px}
  
  /* CTA SECTION */
  .cta-buttons{flex-direction:column;align-items:center}
  .cta-buttons .btn{width:100%;max-width:300px;text-align:center}
  
  /* CONTACT MODAL */
  .contact-modal__dialog{
    width:calc(100% - 24px);
    max-width:350px;
  }
  
  .contact-modal__content{
    padding:24px;
  }
  
  .contact-modal__content h2{
    font-size:20px;
    margin-bottom:20px;
  }
  
  .contact-info{
    gap:16px;
  }
  
  .contact-item{
    padding:12px;
  }
  
  .contact-icon{
    width:36px;
    height:36px;
    font-size:20px;
  }
  
  .contact-details a{
    font-size:15px;
  }
  
  /* COOKIE BANNER MOBILE */
  .cookie-banner__content{
    flex-direction:column;
    gap:16px;
    text-align:center;
  }
  
  .cookie-banner__text{
    min-width:auto;
  }
  
  .cookie-banner__actions{
    justify-content:center;
  }
  
  .cookie-btn{
    padding:12px 20px;
    font-size:15px;
  }
  
  /* COOKIE PREFERENCES MODAL MOBILE */
  .cookie-preferences-modal__dialog{
    width:calc(100% - 24px);
    max-width:350px;
  }
  
  .cookie-preferences-modal__content{
    padding:24px;
  }
  
  .cookie-preferences-modal__content h2{
    font-size:20px;
  }
  
  .cookie-option{
    padding:16px;
  }
  
  .cookie-preferences-modal__actions{
    flex-direction:column;
  }
  
  /* FOOTER */
  .footer-content{flex-direction:column;text-align:center;gap:24px}
  .footer-bottom{flex-direction:column;text-align:center;gap:8px}
  
  /* Lottie animations mobile - touch to play */
  .proj .lottie-container{
    cursor:pointer;
  }
  
  .proj:active .lottie-container{
    transform:scale(0.95);
  }

  
  /* Modal mobile */
  .modal__dialog{
    width:calc(100% - 24px);
    max-width:350px;
    max-height:80vh;
    border-radius:12px;
  }
  
  .modal__header{
    height:160px;
  }
  
  .modal__close{
    top:16px;
    right:16px;
    width:40px;
    height:40px;
    font-size:24px;
  }
  
  .modal__body{
    padding:20px;
  }
  
  .modal__title{
    font-size:20px;
    margin-bottom:12px;
  }
  
  .modal__content{
    font-size:14px;
    line-height:1.5;
  }
  
  .modal__footer{
    padding:16px 20px;
    flex-direction:column;
    gap:10px;
  }
  
  .modal__cta,
  .modal__close-btn{
    width:100%;
    text-align:center;
    padding:14px 20px;
    font-size:15px;
  }
}