:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --accent: #ffb300;
  --accent-soft: rgba(255,179,0,0.08);
  --text: #f5f5f5;
  --muted: #a9b3c9;
  --border: rgba(255,255,255,0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0,0,0,0.55);
  --shadow-card: 0 14px 36px rgba(0,0,0,0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: radial-gradient(circle at top, #162447 0, #050816 0%, #02020a 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
	padding-left: 40px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 95%;
  //max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom,
    rgba(5,8,22,0.94),
    rgba(5,8,22,0.85),
    rgba(5,8,22,0.5),
    transparent
  );
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0 0.5rem;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-grow: 1;
}

.brand-logo {
  width: 200px;
  height: 65px;
  #border-radius: 50%;
  margin-right:30px;
  overflow: hidden;
  border: 0px solid rgba(255,255,255,0.2);
  box-shadow: none;
}

.brand-text {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  visibility: hidden;
}

.brand-name {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  position: relative;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
  z-index: 50;
}

.nav-links a {
  color: var(--muted);
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a.active {
	font-weight: bold;
	font-size: 1.2em;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ff6b3d);
  transition: width 0.22s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255,179,0,0.12);
  border: 1px solid rgba(255,179,0,0.4);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.nav-cta span {
  font-size: 0.8rem;
}

.nav-cta:hover {
  background: rgba(255,179,0,0.22);
  transform: translateY(-1px);
}

.nav-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(5,8,22,0.85);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  position: relative;
}

.nav-menu-toggle span::before,
.nav-menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.nav-menu-toggle span::before {
  top: -5px;
}

.nav-menu-toggle span::after {
  top: 5px;
}

/* Inizio gestione tasto Hamburger: small devices */
/* Nascondiamo l'hamburger su desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: 0.3s;
}

/* Quando il pulsante ha la classe .open, trasformiamo gli span */

/* La prima linea ruota verso il basso */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

/* La linea centrale scompare */
.hamburger.open span:nth-child(2) {
    opacity: 0;
}

/* La terza linea ruota verso l'alto */
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3); /* Un velo scuro leggero */
    backdrop-filter: blur(3px);           /* La sfocatura vera e propria */
    z-index: 30;                          /* Sotto il menu, sopra il contenuto */
    opacity: 0;
    pointer-events: none;                /* Rende il div "trasparente" ai click quando è chiuso */
    transition: opacity 0.4s ease;
}

/* Quando il menu è aperto, mostriamo l'overlay */
.overlay.active {
    opacity: 1;
    pointer-events: all; /* Ora blocca i click sul resto del sito */
}


/* Media Query per Mobile */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        left: 0px;
        top: 75px; /* Altezza della navbar */
        height: calc(100vh - 100px);
        background-color: #10182a;;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(-100%); /* Lo sposta fuori dallo schermo */
        transition: transform 0.5s ease-in;
		padding-top: 1em;
		border-top-right-radius: 10px;
    }

    .nav-links li { margin: 20px 0; }

    /* Classe che mostrerà il menu */
    .nav-links.active {
        transform: translateX(0%);
    }

    .overlay {
        position: fixed;
        top: 100px; /* Parte da sotto la navbar */
        height: calc(100vh - 100px);
    }
	.container {
		padding: 0;
	}
}
/* Fine gestione tasto Hamburger: small devices */


main {
  flex: 1;
}

pre code, pre.code {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.hero {
  padding-top: 2.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.8rem 0.25rem 0.4rem;
  border-radius: var(--radius-pill);
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.4);
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.hero-kicker-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffb300, #f97316);
  box-shadow: 0 0 18px rgba(251,146,60,0.9);
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(90deg, #ffb300, #ff6b3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.4rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}
.badge {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148,163,184,0.35);
  color: var(--muted);
  background: rgba(15,23,42,0.8);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out, border-color 0.18s ease-out;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ffb300, #ff6b3d);
  color: #050816;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.9);
}

.btn-ghost {
  background: rgba(15,23,42,0.9);
  color: var(--text);
  border: 1px solid rgba(148,163,184,0.5);
}

.btn-ghost:hover {
  background: rgba(15,23,42,1);
  border-color: rgba(209,213,219,0.7);
  transform: translateY(-1px);
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-note strong {
  color: var(--accent);
  font-weight: 500;
}

.hero-right {
  position: relative;
}

.hero-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.12), transparent 55%),
              radial-gradient(circle at bottom right, rgba(248,250,252,0.12), transparent 55%),
              linear-gradient(135deg, rgba(15,23,42,0.95), rgba(15,23,42,0.96));
  padding: 1.1rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(148,163,184,0.35);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-card-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7eb;
}

.hero-card-sub {
  font-size: 0.76rem;
  color: var(--muted);
}

.hero-pill {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(22,163,74,0.18);
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,0.45);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.metric-card {
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-md);
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.35);
}

.metric-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.metric-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-image-wrap {
  position: relative;
  margin-top: 0.6rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.4);
  background: #020617;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-image-caption {
  font-size: 0.7rem;
  color: var(--muted);
  padding: 0.4rem 0.5rem 0.3rem;
  background: rgba(15,23,42,0.96);
  border-top: 1px solid rgba(15,23,42,0.9);
}

.hero-floating-tag {
  position: absolute;
  right: 0.7rem;
  top: -0.1rem;
  font-size: 0.7rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(148,163,184,0.5);
  color: var(--muted);
  box-shadow: 0 12px 35px rgba(0,0,0,0.8);
}

.hero-floating-tag span {
  color: var(--accent);
  font-weight: 500;
  margin-left: 0.2rem;
}

.section {
  margin-top: 2.75rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title span {
  color: var(--accent);
}

.section-sub {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 28rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148,163,184,0.32);
  background: linear-gradient(145deg, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
  padding: 0.95rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.service-name {
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.service-desc {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.service-tag {
  font-size: 0.7rem;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.55rem;
  background: rgba(15,23,42,1);
  border: 1px solid rgba(148,163,184,0.4);
  color: #e5e7eb;
}

.service-link {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.service-link span {
  font-size: 0.9rem;
  transform: translateY(1px);
}

.trusted {
  margin-top: 2.3rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148,163,184,0.5);
  background: radial-gradient(circle at left, rgba(56,189,248,0.08), transparent 50%),
              radial-gradient(circle at right, rgba(251,191,36,0.12), transparent 52%),
              rgba(15,23,42,0.96);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.trusted-text {
  font-size: 0.86rem;
  color: var(--muted);
}

.trusted-text strong {
  color: #e5e7eb;
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #e5e7eb;
}

.trusted-pill {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.95);
}

.contact-section {
  margin-top: 3rem;
  padding: 1.3rem 1.1rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(251,191,36,0.15), transparent 58%),
              rgba(15,23,42,0.98);
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 1.2rem;
}

.contact-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.contact-text {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact-points {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: #e5e7eb;
}

.contact-points a {
  color: var(--accent);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.field label {
  font-size: 0.76rem;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.98);
  padding: 0.5rem 0.55rem;
  font-size: 0.86rem;
  color: #e5e7eb;
  outline: none;
}

.field textarea {
  min-height: 80px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(251,191,36,0.3);
}

.contact-submit {
  margin-top: 0.3rem;
  justify-self: flex-start;
}

footer {
  padding: 1.5rem 0 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-inner {
  border-top: 1px solid rgba(148,163,184,0.25);
  padding-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
  }

  .contact-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 1.3rem;
  }

  .hero-card {
    margin-top: 0.5rem;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-section {
    padding: 1.1rem 1rem;
  }

  .container {
    padding-inline: 1rem;
  }
}

/* Articoli */
/* commenti */
.comments-area .children {
	padding-left: 20px;
}
.comments-area ol {
	padding: 0;
	list-style: none;
}

/* Article */

article {
  background-color:#464646;
  margin: 0px;
  padding: 5px;
  border-radius: 10px;
}

/* .hero */ 
body.article .hero h1,
body.faq .hero h1 {
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align:center;
}
body.article .hero h1 span,
body.faq .hero h1 span {
  background: linear-gradient(90deg, var(--accent), #ff6b3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.article .hero p,
body.faq .hero p {
  font-size: 2.0rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text);
  line-height: 1.7;
}


.categories {
    list-style: none;
    padding: 0; 
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}       
.categories li a {
    display: inline-flex;
    align-items: center;
    padding: 5px 5px;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    border: 1px solid transparent;
}   
.categories li a:hover {
    transform: translateY(-2px);
}
.categories .icon {
    margin-right: 3px;
    font-size: 1.2em;
}

@media (min-width: 576px) {
	article {
		margin: 10px;
		padding: 10px;
	  	border-radius: 20px;
	}
    .categories {
        gap: 15px;
		}
    .categories .icon {
        margin-right: 10px;
        font-size: 1.3em;
    }
	.categories li a {
		padding: 12px 20px;
	}
}

