:root{
  --asg-bg:#061f33;
  --asg-bg2:#031523;
  --asg-fluo:#dfff00;
  --asg-text:#ffffff;
  --asg-card:#ffffff;
  --asg-muted:#53616d;
  --asg-dark:#061f33;
  --asg-border:rgba(223,255,0,.45);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:linear-gradient(180deg,var(--asg-bg) 0%,var(--asg-bg2) 100%);
  color:var(--asg-text);
  min-height:100vh;
}
.asg-page{
  max-width:980px;
  margin:0 auto;
  padding:32px 16px 54px;
}
.asg-top{margin-bottom:24px}
.asg-back{
  display:inline-block;
  color:var(--asg-fluo);
  text-decoration:none;
  font-weight:800;
  margin-bottom:22px;
}
.asg-hero{
  border:1px solid var(--asg-border);
  background:rgba(223,255,0,.08);
  border-radius:24px;
  padding:28px;
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}
.asg-badge{
  display:inline-block;
  background:var(--asg-fluo);
  color:var(--asg-dark);
  padding:7px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.4px;
  margin-bottom:14px;
}
h1{
  margin:0 0 12px;
  font-size:38px;
  line-height:1.1;
  color:var(--asg-fluo);
  text-transform:uppercase;
}
.asg-hero p{
  margin:0;
  color:#fff;
  font-size:18px;
  line-height:1.55;
  font-weight:600;
}
.asg-tool{
  margin-top:24px;
  background:var(--asg-card);
  color:var(--asg-dark);
  border-radius:24px;
  padding:26px;
  box-shadow:0 14px 34px rgba(0,0,0,.30);
  border-top:7px solid var(--asg-fluo);
}
label{
  display:block;
  font-weight:900;
  margin:14px 0 8px;
  color:var(--asg-dark);
}
.file-upload-wrap{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:10px;
}
.file-upload-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--asg-fluo);
  color:#000!important;
  font-weight:900;
  font-size:16px;
  padding:14px 22px;
  border-radius:14px;
  cursor:pointer;
  border:2px solid var(--asg-fluo);
  text-decoration:none;
  min-height:52px;
  box-sizing:border-box;
  transition:all .2s ease;
  margin:0;
}
.file-upload-btn:hover{
  background:#cbe800;
  border-color:#cbe800;
}
.file-upload-name{
  font-size:15px;
  color:#1f2f3d;
  font-weight:700;
  word-break:break-word;
}
input[type="range"]{width:100%}
select{
  width:100%;
  border:2px solid #d8e1e6;
  border-radius:14px;
  padding:14px;
  font-size:16px;
  color:var(--asg-dark);
  background:#fff;
  outline:none;
}
select:focus{
  border-color:var(--asg-fluo);
  box-shadow:0 0 0 4px rgba(223,255,0,.25);
}
.asg-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-top:16px;
}
.asg-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}
button,.asg-button{
  border:0;
  cursor:pointer;
  background:var(--asg-dark);
  color:var(--asg-fluo);
  padding:13px 18px;
  border-radius:999px;
  font-size:15px;
  font-weight:900;
  text-decoration:none;
  display:inline-block;
}
button.secondary{
  background:#e9eef2;
  color:var(--asg-dark);
}
button:hover,.asg-button:hover{
  filter:brightness(1.05);
  transform:translateY(-1px);
}
button:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}
.asg-result,.asg-progress{
  margin-top:20px;
  border:1px solid #dce5ea;
  background:#f4f8fa;
  border-radius:18px;
  padding:18px;
  color:var(--asg-dark);
  line-height:1.55;
}
.asg-result strong{color:var(--asg-dark)}
.asg-small{
  color:var(--asg-muted);
  font-size:14px;
  line-height:1.5;
}
.asg-note{
  margin-top:24px;
  padding:18px;
  border-radius:18px;
  background:rgba(223,255,0,.10);
  border:1px solid rgba(223,255,0,.35);
  color:#fff;
  line-height:1.55;
}
.asg-note strong{color:var(--asg-fluo)}
.asg-warning{
  border-left:6px solid var(--asg-fluo);
  background:#fffbe8;
  padding:14px;
  border-radius:12px;
  line-height:1.5;
  margin-bottom:18px;
}
@media(max-width:700px){
  .asg-page{padding:22px 13px 44px}
  .asg-hero,.asg-tool{padding:20px}
  h1{font-size:29px}
  .asg-hero p{font-size:16px}
  .file-upload-btn{
    width:100%;
    max-width:260px;
    font-size:17px;
    padding:15px 20px;
  }
  .file-upload-name{
    width:100%;
    font-size:14px;
  }
}

/* Blocco introduttivo ASG Template Tools */
.asg-intro{
  margin-top:24px;
  padding:18px;
  border-radius:18px;
  background:rgba(223,255,0,.10);
  border:1px solid rgba(223,255,0,.35);
  color:#ffffff;
  line-height:1.6;
}
.asg-intro strong{color:var(--asg-fluo)}
.asg-intro p{margin:6px 0 0}

/* Pulsanti Instagram e Facebook */
.asg-social-buttons{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  margin-top:18px;
}

.asg-social-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:fit-content;
  max-width:100%;
  padding:13px 18px;
  border-radius:14px;
  background:#dfff00;
  color:#06131d !important;
  font-weight:800;
  line-height:1;
  text-decoration:none !important;
  border:1px solid rgba(223,255,0,.8);
  box-shadow:0 0 18px rgba(223,255,0,.25);
  transition:background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.asg-social-btn svg{
  width:22px;
  height:22px;
  fill:currentColor;
  flex:0 0 auto;
}

.asg-social-btn:visited{color:#06131d !important;}
.asg-social-btn:hover{
  background:#ffffff;
  color:#06131d !important;
  box-shadow:0 0 22px rgba(255,255,255,.25);
  transform:translateY(-1px);
}

/* Sezione recensione Google */
.asg-review-box{
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid rgba(223,255,0,.25);
}
.asg-review-text{margin:0 0 14px;color:#ffffff;line-height:1.6;}
.asg-review-text strong{color:#deff00;}
.asg-review-stars{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;margin:0 0 18px;}
.asg-review-stars span{
  display:inline-block;
  color:#deff00;
  font-size:23px;
  line-height:1;
  text-shadow:0 0 8px rgba(222,255,0,.22);
}

/* Pulsante recensione Google */
.google-review-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:fit-content;
  max-width:100%;
  padding:12px 18px;
  border-radius:14px;
  background:#ffffff;
  color:#d93025 !important;
  font-size:15px;
  font-weight:800;
  line-height:1.25;
  text-align:center;
  text-decoration:none !important;
  border:1px solid #d8d8d8;
  box-shadow:0 4px 14px rgba(0,0,0,.16);
  transition:background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.google-review-btn:visited{color:#d93025 !important;}
.google-review-btn:hover{
  background:#f5f5f5;
  color:#c5221f !important;
  border-color:#cfcfcf;
  box-shadow:0 6px 18px rgba(0,0,0,.20);
  transform:translateY(-1px);
}
.google-review-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;}
.google-review-icon svg{display:block;width:21px;height:21px;}

@media(max-width:600px){
  .asg-social-buttons{align-items:stretch;}
  .asg-social-btn,.google-review-btn{width:100%;}
}
