
        /* Reset base */
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: sans-serif; }

        /* Barra di navigazione */
.navbar{
  background:#0f172a;
  color:#fff;
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 5%;
  gap:30px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

/* =========================
   ADS FISSO IN BASSO SOLO TOOL
   ========================= */

body.tool-page{
  padding-bottom:120px;
}

body.tool-page.tool-ad-closed{
  padding-bottom:0;
}

.tool-fixed-ad{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:90;
  background:rgba(255,255,255,0.96);
  border-top:1px solid #e5e5e5;
  box-shadow:0 -8px 24px rgba(0,0,0,0.08);
  padding:10px 5%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
}

.tool-fixed-ad-label{
  font-size:0.72rem;
  font-weight:900;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#777;
  white-space:nowrap;
}

.tool-fixed-ad-box{
  width:min(900px, 100%);
  min-height:76px;
  border:1px dashed #d8d8d8;
  border-radius:12px;
  background:#f9f9f9;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#777;
  font-weight:800;
  padding:10px;
}

.tool-fixed-ad-close{
  position:absolute;
  right:14px;
  top:10px;
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid #ddd;
  background:#fff;
  cursor:pointer;
  font-weight:900;
  color:#333;
}

.tool-fixed-ad-close:hover{
  border-color:#fc8e07;
  color:#fc8e07;
}

@media (max-width:700px){
  body.tool-page{
    padding-bottom:100px;
  }

  .tool-fixed-ad{
    padding:8px 12px;
    gap:8px;
  }

  .tool-fixed-ad-label{
    display:none;
  }

  .tool-fixed-ad-box{
    min-height:68px;
    font-size:0.85rem;
  }
}

@media print{
  .tool-fixed-ad{
    display:none !important;
  }

  body.tool-page{
    padding-bottom:0 !important;
  }
}
.wn-title {
    display: flex;
    align-items: center;
}

.emoji {
    height: 40px; /* Regola l'altezza della tua immagine g303.png */
    width: auto;
}

        .nav-links { list-style: none; display: flex; }

        .nav-item { padding: 20px; cursor: pointer; }

        .nav-item a { color: white; text-decoration: none; font-weight: bold; }

        /* PANNELLO MEGA MENU */
        .mega-menu {
            display: none; /* Nascosto di default */
            position: absolute;
            top: 60px;
            left: 0;
            width: 100%;
            background: #f9f9f9;
            box-shadow: 0px 10px 20px rgba(0,0,0,0.1);
            border-top: 3px solid #fc8e07;
            padding: 40px 5%;
            z-index: 100;
        }

        /* Mostra il menu al passaggio del mouse */
        .nav-item:hover .mega-menu { display: block; }

        /* Griglia interna */
        .mega-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .mega-column h3 {
            color: #fc8e07;
            font-size: 0.9rem;
            margin-bottom: 15px;
            text-transform: uppercase;
        }

        .mega-column ul { list-style: none; padding-left: 5px;}

        .mega-column ul li { margin-bottom: 20px;padding-left: 5px; }

        .mega-column ul li a {
            color: #444;
            font-size: 1rem;
            transition: 0.3s;
            margin-bottom: 50px;
        }

        .mega-column ul li a:hover { color: #fc8e07; padding-left: 5px; }

/* Sfondo logo come watermark dietro a tutto */
body {
  background: #fff;
  color: #222;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: url('g302.png') center/30% no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* La pagina scorre e sta sopra allo sfondo */
.page{
  position: relative;
  z-index:1;
  padding:30px 5%;
  max-width:1100px;
  margin:0 auto;
}

/* HERO */
.hero{
  padding: 60px 5% 30px;
  text-align: center;
}

.hero-inner{
  max-width: 900px;
  margin: 0 auto;
}

.hero h1{
  font-size: 2.1rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.subtitle{
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 20px;
}

/* Bottoni */
.cta-row{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn{
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #bbb;
  color: #222;
  background: #fff;
  font-weight: 700;
}

.btn.primary{
  border-color: #333;
  background: #333;
  color: #fff;
}

/* Pill */
.quick-points{
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.pill{
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #444;
  font-weight: 600;
}

/* Sezioni */
.section{
  padding: 40px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2{
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.section-lead{
  color: #555;
  margin-bottom: 18px;
}

/* Cards */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card{
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.card h3{ margin-bottom: 8px; }
.card p{ color:#555; margin-bottom: 12px; }

.card-link{
  text-decoration: none;
  font-weight: 800;
  color: #333;
}

/* Grid 2 */
.grid-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.box{
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 14px;
}

/* Steps */
.steps{
  padding-left: 18px;
  color: #333;
}

.steps li{
  margin: 10px 0;
}

/* CTA section */
.section.cta{
  text-align: center;
  background: rgba(255,255,255,0.75);
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  margin-bottom: 40px;
}

/* Footer */
.footer{
  padding: 18px 5% 30px;
  color: #555;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #eaeaea;
}

.footer a{
  color:#555;
  text-decoration:none;
  margin-left: 12px;
}

/* Responsive */
@media (max-width: 900px){
  .cards{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 1.7rem; }
}

/* BLOG */
.blog-page{ position: relative; z-index: 1; padding: 30px 5%; max-width: 1200px; margin: 0 auto; }
.blog-hero{ text-align:center; padding: 30px 0 10px; }
.blog-hero p{ color:#555; margin-top: 10px; }

.blog-search{ margin: 18px auto 0; max-width: 520px; }
.blog-search input{
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #ddd; outline: none;
}

.blog-section{ padding: 28px 0; }
.blog-cats{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top: 10px; }
.cat{ padding: 10px 14px; border: 1px solid #ddd; border-radius: 999px; text-decoration:none; color:#333; background:#fff; font-weight:700; }

.post-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.post{
  background:#fff; border:1px solid #e5e5e5; border-radius: 14px;
  padding: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.post h3{ margin-bottom: 30px; font-size: 1.05rem; }
.post a{ text-decoration:none; color:#222; font-weight: 900; }
.post p{ color:#555; }
.meta{ margin-top: 10px; color:#666; font-size: 0.9rem; }

/* ARTICOLO */
.article{ position: relative; z-index:1; padding: 30px 5%; max-width: 900px; margin: 0 auto; }
.article-head{ color:#0b0430;text-align:center; padding: 30px 0 10px; }
.article-sub{ color:#1a1344; margin-top: 20px; }
.article-meta{ color:#777; margin-top: 8px; font-size: 0.9rem; }
.article ul { list-style: none;margin-bottom: 30px; padding-left: 10px;}

.article ul li { 
  margin-bottom: 10px;
  padding-left: 5px; 
}

.article ul li a {
  color: #444;
  font-size: 1rem;
  transition: 0.3s;
  margin-bottom: 50px;
}

.article ul li a:hover { color: #fc8e07; padding-left: 5px; }

.article-body{ margin-top: 20px; background: rgba(255,255,255,0.85); border:1px solid #eee; border-radius: 16px; padding: 18px; }
.article-body h2{ margin-top: 18px; margin-bottom: 12px; }
.article-body h3{ margin-top: 18px; margin-bottom: 12px; }
.article-body p, .article-body li{ color:#333; line-height: 1.5; }
.article-body ul li { 
  margin-bottom: 10px;
  padding-left: 5px; 
}

.article-body ul li a {
  color: #444;
  font-size: 1rem;
  transition: 0.3s;
  margin-bottom: 50px;
}
.article-table th {
    color: #0a0a0a;
    padding: 20px;
    height: 30px; /* Ridotto da 75px */
    text-align: center;
    border-radius: 4px;
    font-size: 1rem;
    box-shadow: 0 0 5px #fc8e07;
}

.article-table th, 
.article-table td {
    padding: 10px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #30363d;
}


/* --- 5. STILE CELLE (CALENDARIO) --- */
.article-table td {
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
.article-body ul li a:hover { color: #fc8e07; padding-left: 5px; }

.box-products{
  margin-top: 18px; border:1px solid #e5e5e5; border-radius: 14px;
  padding: 14px; background:#fff;
}
.box-products a{ font-weight: 800; }

.article-cta{
  margin-top: 18px; text-align:center; border-top: 1px solid #eee; padding-top: 14px;
}

@media (max-width: 900px){
  .post-grid{ grid-template-columns: 1fr; }
}


.service{ position: relative; z-index:1; padding: 30px 5%; max-width: 1000px; margin: 0 auto; }
.service-hero{ text-align:center; padding: 30px 0 10px; }
.service-sub{ color:#555; margin-top: 10px; }

.service-section{ padding: 28px 0; }

.cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.card{ background:#fff; border:1px solid #e5e5e5; border-radius: 14px; padding: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.card p{ color:#555; }

.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.box{ background:#fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 14px; }

.steps{ padding-left: 18px; }
.steps li{ margin: 10px 5; }

.cta-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top: 16px; }

.btn{ display:inline-block; padding:12px 16px; border-radius: 10px; text-decoration:none; border:1px solid #bbb; color:#222; background:#fff; font-weight:700; }
.btn.primary{ border-color:#333; background:#fc8e07; color:#fff; }

.service-section.cta{ text-align:center; background: rgba(255,255,255,0.75); border: 1px solid #e5e5e5; border-radius: 16px; padding: 22px; }

@media (max-width: 900px){
  .cards{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
} 
.card-link-wrap{
  text-decoration:none;
  color:inherit;
  display:block;
}

.card-link-wrap .card{
  transition:0.25s;
  cursor:pointer;
}

.card-link-wrap .card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 28px rgba(0,0,0,0.12);
}


.sx-wrapper {
    position: absolute;
    top: 55%;
    left: 8%;
    transform: translate(-50%, -50%);
    width: 12vw; 
    height: 85%;
    background: rgba(2, 4, 10, 0.95);
    border: 1px solid #fc8e07;
    box-shadow: 0 0 15px rgba(0, 208, 255, 0.6);
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow-x: auto;       /* 🔴 scroll orizzontale */
    overflow-y: visible;

}
.dx-wrapper {
    position: absolute;
    top: 55%;
    left: 92%;
    transform: translate(-50%, -50%);
    width: 12vw; 
    height: 85%;
    background: rgba(2, 4, 10, 0.95);
    border: 1px solid #fc8e07;
    box-shadow: 0 0 15px rgba(0, 208, 255, 0.6);
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow-x: auto;       /* 🔴 scroll orizzontale */
    overflow-y: visible;

}
.general-wrapper {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: fit-content; 
    width: 70vw; 
    height: 85%;
    background: rgba(2, 4, 10, 0.603);
    border: 1px solid #fc8e07;
    box-shadow: 0 0 15px rgba(0, 208, 255, 0.6);
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow-x: auto;       /* 🔴 scroll orizzontale */
    overflow-y: auto;

}
html {
  scroll-behavior: smooth;
}

.article-img{
  width: 100%;
  border-radius: 12px;
  margin: 25px 0;
}

.article-sep{
  border: 10px;;
  border-top:1px solid rgba(255,255,255,.12);
  margin: 28px 0;
}

/* =========================
   TOC (Indice) - SAFE mode
   ========================= */
.article-tocbox{
  margin: 0 0 18px 0;
  padding: 12px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
}

.article-tocsum{
  cursor: pointer;
  font-weight: 900;
  color: #0b0430;
  list-style: none;
}

.article-tocsum::-webkit-details-marker{ display:none; }

.article-toclist{
  margin: 10px 0 0 0;
  padding-left: 18px;            /* ripristina padding dopo reset */
  list-style: decimal;           /* numerazione */
}

.article-tocsub{
  margin: 6px 0 8px 0;
  padding-left: 18px;
  list-style: decimal;
}

.article-tocitem{ margin: 6px 0; }

/* IMPORTANT: neutralizza le tue regole su .article ul li a / margin-bottom 50 */
.article-tocbox a{
  margin-bottom: 0 !important;
  padding-left: 0 !important;
}

.article-toclink{
  text-decoration: none;
  color: #1a1344;
  font-weight: 800;
}

.article-toclink:hover{
  color: #fc8e07;
  text-decoration: underline;
}

/* Riga strumenti nel TOC */
.article-toctools{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
}

.article-toctools-label{
  font-weight: 800;
  color: #333;
  margin-right: 8px;
}

.article-toctools-link{
  font-weight: 900;
  color: #333;
  text-decoration: none;
}

.article-toctools-link:hover{
  color: #fc8e07;
  text-decoration: underline;
}

/* =========================
   CALLOUT - SAFE mode
   ========================= */
.callout{
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e5e5e5;
  background: rgba(255,255,255,0.95);
}

.callout-title{
  font-weight: 900;
  color: #0b0430;
  margin-bottom: 6px;
}

.callout-text{
  margin: 0;                 /* reset-friendly */
  color:#333;
  line-height: 1.5;
}

.callout--note{ box-shadow: 0 0 0 2px rgba(252,142,7,0.10) inset; }
.callout--warn{ box-shadow: 0 0 0 2px rgba(252,142,7,0.18) inset; }
.callout--best{ box-shadow: 0 0 0 2px rgba(252,142,7,0.14) inset; }

.callout a{
  font-weight: 900;
  color: #333;
  text-decoration: underline;
}

.callout a:hover{ color:#fc8e07; }
/* =========================
   RISORSE / AFFILIAZIONI (box-products)
   ========================= */

.box-products .small-note{
  margin-top: 8px;
  color:#555;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Titoletti sezioni dentro la box */
.res-h4{
  margin-top: 14px;
  margin-bottom: 10px;
  color:#0b0430;
}

/* Grid card */
.res-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Card */
.res-card{
  display:block;
  text-decoration:none;
  color:#222;
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: 0.2s;
}

/* Hover “pulito” */
.res-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.10);
}

/* Badge */
.res-badge{
  display:inline-block;
  font-weight: 900;
  font-size: 0.82rem;
  color:#333;
  border: 1px solid #eee;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.9);
}

/* Varianti (opzionali) */
.res-amz .res-badge{ box-shadow: 0 0 0 2px rgba(252,142,7,0.10) inset; }
.res-rs  .res-badge{ box-shadow: 0 0 0 2px rgba(15,23,42,0.10) inset; }

.res-title{
  font-weight: 900;
  margin-bottom: 6px;
  color:#0b0430;
}

.res-text{
  margin: 0;
  color:#555;
  line-height: 1.4;
}

/* CTA discreta */
.res-cta{
  margin-top: 10px;
  font-weight: 900;
  color:#333;
}

/* Lista riferimenti (norme/strumenti) */
.res-list{
  margin: 8px 0 0 0;
  padding-left: 18px;
  list-style: disc;
}

/* Neutralizza le tue regole aggressive sui link (margin-bottom 50, padding-left hover, ecc.) SOLO QUI */
.box-products .res-list a,
.box-products .res-card{
  margin-bottom: 0 !important;
  padding-left: 0 !important;
}

.res-link{
  font-weight: 900;
  color:#333;
  text-decoration: none;
}
.res-link:hover{
  color:#fc8e07;
  text-decoration: underline;
}

.res-note{
  color:#666;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 900px){
  .res-grid{ grid-template-columns: 1fr; }
}
.br-help-title{
  color:#0b0430;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.br-help-steps{
  padding-left: 18px;
  color:#333;
  line-height: 1.5;
  margin-bottom: 12px;
}
.br-help-steps li{ margin: 8px 0; }

.br-help-box{
  margin-top: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.92);
}

.br-help-sum{
  cursor:pointer;
  font-weight: 1000;
  color:#0b0430;
  list-style: none;
}
.br-help-sum::-webkit-details-marker{ display:none; }

.br-help-dl{
  margin-top: 10px;
}
.br-help-dl dt{
  font-weight: 1000;
  color:#0b0430;
  margin-top: 10px;
}
.br-help-dl dd{
  margin: 6px 0 0 0;
  color:#555;
  line-height: 1.45;
}

.br-help-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.br-help-miniTitle{
  font-weight: 1000;
  color:#0b0430;
  margin-bottom: 8px;
}
.br-help-muted{
  color:#666;
  line-height: 1.45;
  font-size: 0.95rem;
  margin: 0 0 10px 0;
}

.br-help-table{
  width:100%;
  border-collapse: collapse;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid #e5e5e5;
  background:#fff;
}
.br-help-table th, .br-help-table td{
  border-bottom: 1px solid #eee;
  padding: 10px;
  text-align:left;
  color:#222;
  font-size: 0.95rem;
}
.br-help-table th{
  background: rgba(15,23,42,0.04);
  color:#0b0430;
  font-weight: 1000;
}

@media (max-width: 900px){
  .br-help-grid{ grid-template-columns: 1fr; }
}

/* =========================
   ADS LATERALI FUORI ARTICOLO
   ========================= */

.side-ad{
  position: fixed;
  top: 110px;
  width: 160px;
  z-index: 2;
  display: none;
}

.side-ad-left{
  left: max(18px, calc((100vw - 900px) / 2 - 190px));
}

.side-ad-right{
  right: max(18px, calc((100vw - 900px) / 2 - 190px));
}

.side-ad-label{
  display:block;
  margin-bottom:8px;
  font-size:0.72rem;
  font-weight:900;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#777;
  text-align:center;
}

.side-ad-box{
  min-height:520px;
  border:1px solid #e5e5e5;
  border-radius:14px;
  background:rgba(255,255,255,0.92);
  box-shadow:0 8px 20px rgba(0,0,0,0.06);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:12px;
  color:#777;
  font-weight:800;
}

/* Mostra gli ads solo su schermi larghi */
@media (min-width:1300px){
  .side-ad{
    display:block;
  }
}

/* Su schermi bassi riduce altezza */
@media (max-height:760px) and (min-width:1300px){
  .side-ad-box{
    min-height:360px;
  }
}