/* Palette VESPA/SWING
   Viola: #6F2283
   Blu scuro: #383D74
   Azzurro: #5EAADF / #5EAADE
*/

:root {
  --violet: #6f2283;
  --dark-blue: #383d74;
  --light-blue: #5eaade;
  --bg-dark: #050714;
  --bg-section: #070a1a;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.35);
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #111827, var(--bg-dark));
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: #5eaade;
}



/* Layout */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 20, 0.96),
    rgba(5, 7, 20, 0.8),
    transparent
  );
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  height: 40px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-text span:first-child {
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--light-blue));
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: var(--text-main);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Mobile nav */

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: radial-gradient(circle at 20% 20%, #0b1120, #020617);
  position: relative;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease,
    bottom 0.2s ease;
}

.nav-toggle-bar {
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  bottom: -6px;
}

.nav-toggle.open .nav-toggle-bar {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar::before {
  top: 0;
  opacity: 0;
}

.nav-toggle.open .nav-toggle-bar::after {
  bottom: 0;
  transform: translateX(-50%) rotate(-90deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem 1.1rem;
  background: radial-gradient(circle at top, #020617, #020617);
  border-bottom: 1px solid var(--border-soft);
}

.nav-mobile a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text-main);
}

/* Hero home */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.6rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.22rem 0.6rem 0.22rem 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 253, 0.6);
  background: radial-gradient(circle at left, rgba(111, 34, 131, 0.4), transparent);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f97316, #dc2626);
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(120deg, var(--violet), var(--light-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 540px;
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 0.9rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease, color 0.16s ease;
}

.btn-primary {
  background: linear-gradient(125deg, var(--violet), var(--light-blue));
  color: #f9fafb;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.85);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.7);
}

/* Hero right visual */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, #0b1120, #020617 65%, #020410);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(
      140deg,
      rgba(111, 34, 131, 0.9),
      rgba(94, 170, 222, 0.35),
      rgba(56, 61, 116, 0.9)
    )
    border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
}

.hero-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.hero-card-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.hero-chip {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  background: rgba(148, 163, 253, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.7);
}

.hero-card-main {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  height: 180px;
  overflow: hidden;
  background: radial-gradient(circle at 0% 0%, #6f2283, transparent 55%),
    radial-gradient(circle at 80% 100%, #5eaade, transparent 55%),
    radial-gradient(circle at 100% 15%, #383d74, transparent 50%);
}

.hero-orbit {
  position: absolute;
  inset: 14%;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
}

.hero-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f9fafb, #6f2283);
  box-shadow: 0 0 18px rgba(129, 140, 248, 0.9);
}

.hero-node:nth-child(2) {
  top: 18%;
  left: 18%;
}

.hero-node:nth-child(3) {
  bottom: 20%;
  left: 48%;
}

.hero-node:nth-child(4) {
  top: 56%;
  right: 12%;
}

.hero-card-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.metric {
  padding: 0.45rem 0.55rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.metric-label {
  font-size: 0.64rem;
  color: var(--text-muted);
}

.metric-value {
  font-size: 0.9rem;
}

/* Sections */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.3rem 1.5rem 1.6rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-title {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  /*max-width: 520px;*/
}

/* Cards & grids */

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 1.3rem;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 1.1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #0b1120, #020617);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.17s ease, box-shadow 0.17s ease,
    border-color 0.17s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.9);
  border-color: rgba(94, 170, 222, 0.8);
}

.card-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  background: radial-gradient(circle at 20% 20%, var(--light-blue), var(--violet));
}

.card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.card p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.card p img{
  border-radius: 16px;
}

.card-footer {
  margin-top: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-inline {
  font-size: 0.8rem;
  color: var(--light-blue);
  text-decoration: none;
}

/* Tech strip */

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tech-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 1rem;
  text-align: center;
  vertical-align: middle;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-soft);
}

.tech-img {
  border-radius: 16px;
  vertical-align: middle;
}

/* CTA */

.cta {
  margin-top: 1.6rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    110deg,
    rgba(111, 34, 131, 0.3),
    rgba(56, 61, 116, 0.85),
    rgba(94, 170, 222, 0.3)
  );
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta p {
  font-size: 0.9rem;
}

/* Internal pages */

.inner-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1.8rem;
}

.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.inner-title {
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.inner-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem 2.4rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 2.2rem;
}

.content h2 {
  font-size: 1.05rem;
  margin: 1.1rem 0 0.4rem;
}

.content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.content ul {
  padding-left: 1.1rem;
  margin: 0.4rem 0 0.7rem;
}

.content li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.sidebar-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, #020617, #020617);
  border: 1px solid var(--border-soft);
}

/* Forms */

.form {
  max-width: 640px;
  margin-top: 1.1rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.form-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

label {
  font-size: 0.8rem;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border-soft);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--light-blue);
  box-shadow: 0 0 0 1px rgba(94, 170, 222, 0.4);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input[type="file"] {
  padding: 0.4rem;
  font-size: 0.82rem;
}

/* Map */

.map-embed {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.map-embed iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: radial-gradient(circle at top, #020617, #020617);
  margin-top: auto;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  font-size: 0.85rem;
}

.footer-inner h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.footer-inner p,
.footer-inner a {
  font-size: 0.8rem;
}

.footer-inner a {
  color: var(--text-main);
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
  opacity: 0.9;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.footer-inner a:hover {
  opacity: 1;
  color: var(--light-blue);
}

.footer-note {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Fade‑in */

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2.6rem;
  }

  .hero-visual {
    order: -1;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .section {
    padding-top: 2.1rem;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 450px) {
  img.wp-image-1868 {
    width: 200px;
  }
}

.language-switcher {
  position: relative;
  margin-left: auto;
  margin-right: 1rem;
}

.lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.lang-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
}

.language-switcher:hover .lang-dropdown,
.lang-dropdown.show {
  display: block;
}

.lang-option {
  padding: 0.5rem;
  cursor: pointer;
}

.lang-option:hover {
  background-color: #f3f4f7;
}


@media (max-width: 768px) {
  .language-switcher {
    margin: 1rem 0;
    margin-left: 0;
  }
}

.no-highlight {
  text-decoration: none;
  color: #FFF;
}