/* ==========================================================
   AETHERIA WEB STUDIO - foglio di stile (versione 2)
   ========================================================== */

@font-face {
  font-family: "Manrope";
  src: url("font/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("font/site/Outfit-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("font/site/Outfit-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("font/site/Outfit-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("font/site/Outfit-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("font/site/JetBrainsMono-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("font/site/JetBrainsMono-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #111419;
  --navy: #14223f;
  --ice: #e6f4f7;
  --white: #ffffff;
  --grey: #4a5568;
  --grey-on-dark: #c9d3e3;
  --azure: #2a62f0;
  --azure-hover: #1f4fd0;
  --teal-light: #3cc8c3;
  --teal-dark: #0a7276;
  --line-light: rgba(20, 34, 63, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --focus: var(--azure);
  --radius: 16px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
}

.site-header,
.hero,
.page-hero,
.section-dark,
.site-footer {
  --focus: var(--teal-light);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--grey);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.15;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, 1100px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--teal-light);
  color: var(--navy);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* TESTATA E MENU */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}

.logo-link {
  display: block;
}

.logo-link img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}

.nav-toggle {
  display: none;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-list a {
  display: inline-block;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  color: var(--grey-on-dark);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--teal-light);
}

/* PULSANTI */
.button {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  border: 2px solid var(--azure);
  border-radius: 10px;
  background: var(--azure);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.button:hover {
  border-color: var(--azure-hover);
  background: var(--azure-hover);
  transform: translateY(-2px);
}

.button-outline {
  border-color: var(--grey-on-dark);
  background: transparent;
  color: var(--white);
}

.button-outline:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}

/* APERTURA DELLA HOME */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  background:
    radial-gradient(
      50% 70% at 82% 15%,
      rgba(60, 200, 195, 0.16),
      transparent 65%
    ),
    radial-gradient(
      55% 80% at 8% 100%,
      rgba(42, 98, 240, 0.28),
      transparent 65%
    ),
    var(--navy);
  color: var(--white);
}

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

.hero-content > * {
  max-width: 38rem;
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--teal-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-slogan {
  color: var(--grey-on-dark);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* LA SCENA 3D */
.hero-scene {
  --tile: 54px;
  --logo-w: 300px;
  --mini-w: 150px;
  --phone-w: 62px;
  --phone-h: 116px;
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 430px;
  justify-self: end;
}

.scene-item {
  position: absolute;
  transition: transform 0.3s ease-out;
}

.float {
  animation: float 7s ease-in-out infinite;
}

.float-1 {
  animation-duration: 6s;
  animation-delay: -1s;
}

.float-2 {
  animation-duration: 8s;
  animation-delay: -3s;
}

.float-3 {
  animation-duration: 7s;
  animation-delay: -2s;
}

.float-4 {
  animation-duration: 9s;
  animation-delay: -5s;
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

.scene-logo {
  top: 50%;
  left: 50%;
  width: var(--logo-w);
  margin: calc(var(--logo-w) / -2) 0 0 calc(var(--logo-w) / -2);
}

.logo-panel {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease-out;
}

.scene-browser {
  bottom: 5%;
  left: 2%;
}

.scene-phone {
  right: 3%;
  bottom: 6%;
}

.scene-cursor {
  top: calc(50% + 38px);
  left: calc(50% + 105px);
}

.scene-case {
  top: 5%;
  left: 3%;
}

.scene-doc {
  top: 1%;
  left: 36%;
}

.scene-pin {
  top: 8%;
  right: 6%;
}

.scene-cup {
  top: 42%;
  left: 0;
}

.scene-camera {
  top: 44%;
  right: 0;
}

.scene-dumbbell {
  bottom: 2%;
  left: 42%;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tile);
  height: var(--tile);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.tile svg {
  width: 50%;
  height: 50%;
  fill: none;
  stroke: var(--teal-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene-cursor svg {
  display: block;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.mini-site {
  width: var(--mini-w);
  padding-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: var(--black);
  overflow: hidden;
}

.mini-bar {
  display: flex;
  gap: 4px;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mini-bar i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grey-on-dark);
}

.mini-block {
  height: 28px;
  margin: 8px;
  border-radius: 5px;
  background: var(--azure);
}

.mini-line {
  height: 5px;
  margin: 5px 8px 0;
  border-radius: 3px;
  background: var(--grey-on-dark);
}

.mini-line-1 {
  width: 70%;
}

.mini-line-2 {
  width: 50%;
}

.mini-phone {
  width: var(--phone-w);
  height: var(--phone-h);
  padding: 8px 0;
  border: 3px solid var(--grey-on-dark);
  border-radius: 14px;
  background: var(--black);
}

.mini-phone .mini-block {
  height: 22px;
  margin: 0 6px 6px;
}

.mini-phone .mini-line {
  margin: 4px 6px 0;
}

/* SEZIONI A FASCE ALTERNATE */
.section {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  background: var(--white);
}

.section-light {
  background: var(--ice);
}

.section-dark {
  background: var(--navy);
  color: var(--grey-on-dark);
}

.section h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 1rem;
  border-radius: 2px;
  background: var(--teal-dark);
}

.section-dark h2 {
  color: var(--white);
}

.section-dark h2::after {
  background: var(--teal-light);
}

.section-intro {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.cta-block {
  max-width: 46rem;
  margin-inline: 0;
}

/* SCHEDE */
.card {
  padding: 1.75rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(20, 34, 63, 0.08);
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.service {
  max-width: 44rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.demo-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-dark);
}

.home-service:hover,
.home-service:focus-within {
  transform: translateY(-4px);
  border-color: var(--teal-dark);
}

.badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.card-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--azure);
  font-weight: 700;
  text-decoration: none;
}

.card-link::after {
  content: " →";
  content: " →" / "";
}

.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* PAGINE INTERNE */
.page-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background:
    radial-gradient(
      50% 90% at 85% 0%,
      rgba(60, 200, 195, 0.16),
      transparent 65%
    ),
    var(--navy);
}

.page-hero h1 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero p {
  max-width: 40rem;
  margin: 0;
  color: var(--grey-on-dark);
  font-size: 1.15rem;
}

.prose {
  max-width: 46rem;
}

.placeholder {
  display: inline-block;
  max-width: 42rem;
  padding: 0.6rem 1rem;
  border: 1px dashed var(--teal-dark);
  border-radius: 8px;
  background: rgba(10, 114, 118, 0.07);
  color: var(--navy);
}



.prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

.business-details-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  padding-left: 1.35rem;
  list-style: disc;
}

.business-details-list li::marker {
  color: var(--teal-dark);
}

.business-details-list strong {
  color: var(--navy);
}

.history-principles {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
  padding-left: 1.35rem;
  list-style: disc;
}

.history-principles li::marker {
  color: var(--teal-dark);
}

.history-principles strong {
  color: var(--navy);
}

.contact-list {
  display: grid;
  gap: 1.25rem;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
}

.contact-label {
  min-width: 6rem;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-list a {
  color: var(--azure);
  font-size: 1.2rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-underline-offset: 0.25em;
}


.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem;
}

.contact-card {
  height: 100%;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  display: flex;
  flex: 0 0 3.5rem;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  background: var(--ice);
  color: var(--teal-dark);
}

.contact-icon svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card h3 {
  margin-bottom: 0.25rem;
}

.contact-value {
  display: inline-block;
  color: var(--azure);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-underline-offset: 0.25em;
}

.contact-placeholder {
  display: inline-block;
  color: var(--navy);
  font-weight: 700;
}

.contact-description {
  max-width: 28rem;
  margin: 1.25rem 0 0;
}

.demo-banner {
  padding: 0.75rem 1.25rem;
  background: var(--teal-light);
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}

.demo-banner p {
  margin: 0;
}

/* PIÈ DI PAGINA */
.site-footer {
  padding: 3.5rem 0 2rem;
  background: var(--black);
  color: var(--grey-on-dark);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 3rem;
  margin-top: 1.8rem;
}

.footer-contact-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--grey-on-dark);
  text-decoration: none;
}

a.footer-contact-item {
  transition: color 0.2s ease, transform 0.2s ease;
}

a.footer-contact-item:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.footer-contact-icon {
  flex: 0 0 1.4rem;
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: var(--teal-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer p {
  margin-bottom: 0.4rem;
}

.footer-name {
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

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

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer-copy {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}

/* TELEFONI E SCHERMI PICCOLI */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-scene {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .logo-link img {
    width: 52px;
    height: 52px;
  }

  .nav-toggle {
    display: inline-block;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--grey-on-dark);
    border-radius: 10px;
    background: transparent;
    color: var(--white);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line-dark);
    background: var(--black);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li + li {
    border-top: 1px solid var(--line-dark);
  }

  .nav-list a {
    display: block;
    padding: 0.9rem 0;
    font-size: 0.9rem;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .footer-contact-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-contact-column {
    gap: 0.65rem;
  }

  .hero-scene {
    --tile: 44px;
    --logo-w: 230px;
    --mini-w: 116px;
    --phone-w: 50px;
    --phone-h: 94px;
    height: 320px;
  }

  .scene-optional {
    display: none;
  }
}

/* Sui dispositivi senza mouse il logo dondola da solo */
@media (hover: none) {
  .logo-panel {
    animation: sway 8s ease-in-out infinite;
  }
}

@keyframes sway {
  0%,
  100% {
    transform: perspective(700px) rotateY(-9deg) rotateX(3deg);
  }

  50% {
    transform: perspective(700px) rotateY(9deg) rotateX(-3deg);
  }
}

/* RISPETTO PER CHI PREFERISCE MENO MOVIMENTO */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
/* ==========================================================
   AETHERIA — DARK NEUMORPHISM SPAZIALE / EDITORIAL
   Sovrascrive il tema precedente mantenendo la struttura esistente.
   ========================================================== */

:root {
  --black: #050507;
  --navy: #0d0e12;
  --ice: rgba(14, 15, 20, 0.74);
  --white: #f3f5f7;
  --grey: #c0c4cb;
  --grey-on-dark: #b6bdc6;
  --azure: #e4ebf0;
  --azure-hover: #ffffff;
  --teal-light: #d9e6ed;
  --teal-dark: #a4b1ba;
  --line-light: rgba(255, 255, 255, 0.09);
  --line-dark: rgba(255, 255, 255, 0.1);
  --focus: #eaf3f7;
  --radius: 22px;
  --font-head: "Outfit", "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  color-scheme: dark;
  scroll-padding-top: 7rem;
}

body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(214, 228, 237, 0.055), transparent 42%),
    radial-gradient(ellipse at 88% 46%, rgba(133, 151, 166, 0.035), transparent 38%),
    #050507;
  color: var(--grey);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: -0.012em;
}

::selection {
  background: rgba(220, 235, 243, 0.24);
  color: var(--white);
}

h1,
h2,
h3 {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.045em;
}

strong {
  color: var(--white);
  font-weight: 600;
}

.container {
  width: min(100% - 3rem, 1240px);
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.84;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.skip-link {
  z-index: 1200;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #111217;
  color: var(--white);
}

/* Intro breve sopra la scena stellare */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(5, 5, 7, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
}

.preloader.is-active {
  display: flex;
  animation: intro-appear 0.35s ease-out forwards;
}

.preloader.is-leaving {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.preloader-wordmark {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 0.9;
}

.preloader-wordmark sup,
.brand-wordmark sup,
.footer-signature sup {
  display: inline-block;
  margin-left: 0.08em;
  font-size: 0.25em;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: top;
}

.preloader-caption {
  color: rgba(220, 229, 235, 0.7);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}

body.intro-playing {
  overflow: hidden;
}

@keyframes intro-appear {
  to { opacity: 1; }
}

/* Testata: marchio, orologio locale e menu compatto */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  min-height: 76px;
  padding-block: 0.55rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  color: var(--white);
  text-decoration: none;
}

.logo-link img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.brand-wordmark {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: rgba(210, 218, 225, 0.62);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.header-meta-dot {
  color: rgba(238, 244, 248, 0.72);
}

.live-clock {
  min-width: 4.7em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.nav-list {
  justify-self: end;
  align-items: center;
  gap: 0.18rem;
  padding: 0.34rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(14, 15, 20, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 30px rgba(0, 0, 0, 0.28);
}

.nav-list a {
  display: block;
  padding: 0.45rem 0.58rem;
  border: 0;
  border-radius: 9px;
  color: rgba(219, 225, 230, 0.68);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-list li:nth-child(1) a::before { content: "01"; }
.nav-list li:nth-child(2) a::before { content: "02"; }
.nav-list li:nth-child(3) a::before { content: "03"; }
.nav-list li:nth-child(4) a::before { content: "04"; }
.nav-list li:nth-child(5) a::before { content: "05"; }

.nav-list a::before {
  display: block;
  margin-bottom: 0.05rem;
  color: rgba(209, 219, 226, 0.42);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  border: 0;
  background: rgba(238, 245, 249, 0.08);
  color: var(--white);
}

.nav-list a[aria-current="page"]::before {
  color: rgba(230, 239, 245, 0.84);
}

.nav-toggle {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(20, 21, 27, 0.8);
  color: var(--white);
}

/* Pulsanti tattili, scolpiti nella superficie */
.button {
  padding: 0.88rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: linear-gradient(145deg, #17191f, #0c0d11);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.button:hover {
  border-color: rgba(235, 243, 248, 0.32);
  background: linear-gradient(145deg, #1c1f25, #101116);
  color: #fff;
  box-shadow: inset 4px 4px 12px rgba(0, 0, 0, 0.46), inset -1px -1px 0 rgba(255, 255, 255, 0.035);
  transform: translateY(1px);
}

.button:active {
  box-shadow: inset 5px 5px 14px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(2px);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(10, 11, 15, 0.46);
  color: var(--grey-on-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.button-outline:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(231, 238, 243, 0.09);
  color: var(--white);
}

/* Home: apertura monumentale e scena 2.5D esistente */
.hero {
  z-index: 1;
  min-height: min(790px, calc(100svh - 76px));
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6rem);
  background:
    radial-gradient(ellipse at 80% 46%, rgba(197, 214, 225, 0.085), transparent 34%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.35), rgba(5, 5, 7, 0.16));
  color: var(--white);
}

.hero-inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-content > * {
  max-width: 46rem;
}

.eyebrow,
.badge,
.section-kicker,
.service-visual-index,
.service-visual-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.eyebrow {
  margin-bottom: 1.7rem;
  color: rgba(222, 233, 240, 0.68);
}

.hero h1 {
  max-width: 9ch;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-size: clamp(4rem, 9vw, 8.6rem);
  font-weight: 500;
  letter-spacing: -0.078em;
  line-height: 0.88;
}

.hero-slogan {
  max-width: 37rem;
  color: rgba(218, 224, 230, 0.75);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions {
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-scene {
  min-height: 430px;
  isolation: isolate;
  perspective: 1000px;
}

.hero-scene::before {
  position: absolute;
  inset: 8% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(171, 190, 205, 0.11), transparent 68%);
  content: "";
  filter: blur(26px);
}



.float {
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.55));
}

.logo-panel {
  border-color: rgba(225, 236, 243, 0.22);
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.66), 0 0 50px rgba(214, 231, 240, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tile {
  border-color: rgba(230, 239, 245, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(35, 38, 45, 0.8), rgba(11, 12, 16, 0.8));
  box-shadow: 9px 12px 28px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tile svg {
  stroke: rgba(218, 230, 237, 0.86);
}

.mini-site,
.mini-phone {
  border-color: rgba(233, 240, 245, 0.3);
  background: linear-gradient(145deg, rgba(27, 29, 35, 0.95), rgba(7, 8, 11, 0.96));
  box-shadow: 10px 15px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mini-block {
  background: linear-gradient(135deg, #b9c6ce, #59636c);
}

.mini-line {
  background: rgba(219, 229, 236, 0.42);
}

.mini-bar i {
  background: rgba(232, 240, 245, 0.65);
}

/* Ritmo delle sezioni e indici editoriali */
.section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: transparent;
  color: var(--grey);
}

.section-light {
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  background: linear-gradient(180deg, rgba(16, 17, 22, 0.28), rgba(7, 8, 11, 0.22));
}

.section-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(135deg, rgba(16, 17, 22, 0.84), rgba(7, 8, 11, 0.78));
  color: var(--grey-on-dark);
}

body {
  counter-reset: editorial-section;
}

.section h2 {
  max-width: 18ch;
  margin-bottom: 1.8rem;
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
  counter-increment: editorial-section;
}

.section h2::before {
  display: block;
  margin-bottom: 1rem;
  color: rgba(211, 224, 232, 0.5);
  content: "[" counter(editorial-section, decimal-leading-zero) "]";
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
}

.section h2::after {
  width: 2.25rem;
  height: 1px;
  margin-top: 1.25rem;
  background: rgba(220, 232, 239, 0.7);
}

.section-dark h2::after {
  background: rgba(220, 232, 239, 0.7);
}

.section-intro {
  max-width: 58rem;
  color: rgba(207, 214, 222, 0.76);
  font-size: clamp(1.04rem, 1.7vw, 1.2rem);
  line-height: 1.8;
}

.cta-block {
  max-width: 58rem;
}

.cta-block h2 {
  max-width: 13ch;
  font-size: clamp(3rem, 6.4vw, 6rem);
}

/* Superfici in vetro ossidiana */
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--radius);
  background: rgba(13, 13, 18, 0.92);
  color: var(--grey);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.card h3 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.card:hover,
.card:focus-within {
  border-color: rgba(222, 236, 245, 0.22);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  transform: translateY(-5px);
}

.home-service,
.service {
  max-width: none;
}

.home-service {
  min-height: 19rem;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-service p,
.service p {
  max-width: 68ch;
}

.badge {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(225, 236, 243, 0.16);
  border-radius: 999px;
  background: rgba(216, 230, 238, 0.07);
  color: rgba(226, 236, 242, 0.78);
  font-size: 0.58rem;
}

.card-link {
  color: #e1ebf1;
  font-size: 0.9rem;
  font-weight: 600;
  text-underline-offset: 0.28em;
}

.card-link:hover {
  color: var(--white);
  text-decoration-color: rgba(229, 239, 245, 0.65);
}

/* Demo: composizione editoriale sfalsata */
.demo-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(14rem, auto);
  gap: 1rem;
}

.demo-card {
  grid-column: span 5;
  min-height: 19rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  isolation: isolate;
  background:
    radial-gradient(circle at 84% 20%, rgba(222, 235, 243, 0.075), transparent 36%),
    rgba(13, 13, 18, 0.82);
}

.demo-card > * {
  position: relative;
  z-index: 1;
}

.demo-card::after {
  position: absolute;
  top: 12%;
  right: -2.5rem;
  z-index: 0;
  width: clamp(8rem, 15vw, 14rem);
  aspect-ratio: 1;
  border: 1px solid rgba(224, 236, 243, 0.13);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 1rem rgba(220, 232, 239, 0.018), 0 0 0 2.5rem rgba(220, 232, 239, 0.012);
  transform: rotate(-18deg);
}

.demo-card:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 34rem;
  background:
    radial-gradient(ellipse at 78% 28%, rgba(220, 233, 241, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(22, 24, 30, 0.94), rgba(9, 10, 14, 0.9));
}

.demo-card:nth-child(1)::after {
  top: 22%;
  right: -4rem;
  width: clamp(13rem, 27vw, 25rem);
  border-width: 1px;
}

.demo-card:nth-child(2),
.demo-card:nth-child(3) {
  grid-column: span 5;
}

.demo-card:nth-child(2)::after { transform: rotate(22deg) scaleX(0.76); }
.demo-card:nth-child(3)::after { transform: rotate(-28deg) scaleY(0.72); }

.demo-card:nth-child(4) {
  grid-column: 3 / span 8;
  min-height: 15rem;
  background:
    radial-gradient(ellipse at 82% 55%, rgba(225, 238, 245, 0.1), transparent 40%),
    rgba(13, 13, 18, 0.84);
}

.demo-card:nth-child(4)::after {
  top: -38%;
  right: 8%;
  width: 18rem;
  border-style: dashed;
}

/* Interna Servizi: split editoriale con visual sticky */
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(17rem, 0.92fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.service-layout-copy {
  min-width: 0;
}

.service-layout-copy .section h2,
.service-layout-copy h2 {
  max-width: 14ch;
  margin-bottom: 2rem;
}

.service-visual {
  position: sticky;
  top: 8rem;
  display: grid;
  min-height: min(34rem, 66vh);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 48%, rgba(219, 234, 242, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(18, 19, 24, 0.84), rgba(8, 9, 12, 0.76));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-visual-index,
.service-visual-label {
  position: absolute;
  z-index: 2;
  color: rgba(226, 236, 243, 0.58);
}

.service-visual-index { top: 1.4rem; left: 1.5rem; }
.service-visual-label { right: 1.5rem; bottom: 1.4rem; font-size: 0.52rem; letter-spacing: 0.12em; }

.service-visual-core {
  display: grid;
  width: clamp(6rem, 12vw, 10rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(227, 239, 246, 0.36);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(231, 240, 245, 0.15), rgba(13, 14, 18, 0.44) 70%);
  box-shadow: 0 0 70px rgba(210, 229, 239, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.1em;
  animation: core-drift 8s ease-in-out infinite;
}

.service-visual-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.service-orbit {
  position: absolute;
  width: 74%;
  height: 35%;
  border: 1px solid rgba(225, 238, 245, 0.38);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.service-orbit-one { animation: orbit-breathe 8s ease-in-out infinite; }
.service-orbit-two { width: 88%; height: 48%; border-color: rgba(225, 238, 245, 0.11); transform: rotate(38deg); }

.service-visual-node {
  position: absolute;
  z-index: 1;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #e8f1f5;
  box-shadow: 0 0 16px rgba(224, 240, 247, 0.8);
}

.service-visual-node-one { top: 31%; left: 21%; }
.service-visual-node-two { right: 18%; bottom: 30%; width: 0.26rem; height: 0.26rem; }

@keyframes core-drift {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-9px) rotate(4deg); }
}

@keyframes orbit-breathe {
  0%, 100% { transform: rotate(-28deg) scale(0.96); }
  50% { transform: rotate(-20deg) scale(1.04); }
}

/* Pagine editoriali: storia, azienda e contatti */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(18rem, 38vh, 31rem);
  display: flex;
  align-items: end;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background:
    radial-gradient(ellipse at 80% 12%, rgba(213, 229, 238, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(17, 18, 23, 0.38), rgba(5, 5, 7, 0.28));
}

.page-hero h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  color: var(--white);
  font-size: clamp(3.8rem, 9vw, 7.8rem);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.page-hero p {
  max-width: 48rem;
  color: rgba(215, 222, 229, 0.76);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}

.prose {
  max-width: 72rem;
}

.prose > p {
  max-width: 68ch;
  font-size: 1.04rem;
  line-height: 1.95;
}

.prose h3 {
  max-width: 20ch;
  margin: 3rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.history-principles,
.business-details-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.history-principles li,
.business-details-list li {
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: rgba(15, 16, 21, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 35px rgba(0, 0, 0, 0.35);
  color: rgba(195, 201, 208, 0.86);
  font-size: 0.9rem;
  line-height: 1.75;
}

.history-principles strong,
.business-details-list strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.25;
}

.business-details-list {
  grid-template-columns: 1fr;
}

.placeholder {
  border-color: rgba(223, 236, 243, 0.24);
  border-radius: 14px;
  background: rgba(13, 14, 18, 0.75);
  color: var(--grey-on-dark);
}

/* Contatti */
.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.contact-card {
  min-height: 15rem;
}

.contact-method { align-items: flex-start; }

.contact-icon {
  flex: 0 0 3.25rem;
  width: 3.25rem;
  height: 3.25rem;
  border-color: rgba(231, 240, 245, 0.13);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(31, 33, 39, 0.9), rgba(10, 11, 15, 0.9));
  color: #dce8ee;
  box-shadow: 6px 7px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.contact-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.contact-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
}

.contact-value {
  color: #e2ebf0;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-placeholder { color: var(--grey-on-dark); font-size: 0.85rem; }
.contact-description { max-width: 27rem; color: rgba(195, 202, 209, 0.77); }

/* Marquee */
.marquee-band {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(13, 14, 18, 0.54);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-travel 34s linear infinite;
}

.marquee-track span {
  flex: 0 0 auto;
  padding-right: 2rem;
  color: rgba(236, 241, 244, 0.16);
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.marquee-track i {
  margin: 0 0.35em;
  color: rgba(230, 239, 244, 0.6);
  font-size: 0.52em;
  font-style: normal;
  vertical-align: 0.18em;
}

@keyframes marquee-travel {
  to { transform: translateX(-50%); }
}

/* Footer monumentale */
.site-footer {
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(11, 12, 16, 0.92), #050507 78%);
  color: var(--grey-on-dark);
}

.footer-inner {
  align-items: start;
  gap: 2rem 3rem;
}

.footer-name {
  margin-bottom: 0.5rem;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.footer-brand-block > p:last-child {
  color: rgba(190, 198, 205, 0.62);
  font-size: 0.9rem;
}

.footer-links {
  justify-content: flex-end;
  gap: 0.45rem 1.2rem;
}

.footer-links a {
  color: rgba(205, 212, 219, 0.67);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

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

.footer-contact-row {
  gap: 0.85rem 3rem;
  margin-top: 2rem;
  padding-top: 1.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.footer-contact-column { gap: 0.72rem; }

.footer-contact-item {
  gap: 0.65rem;
  color: rgba(205, 212, 219, 0.75);
  font-size: 0.82rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

a.footer-contact-item:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-contact-icon {
  color: #dbe7ed;
  stroke: currentColor;
}

.footer-location { color: rgba(205, 212, 219, 0.58); }

.footer-signature {
  overflow: hidden;
  width: 100%;
  margin: clamp(4rem, 10vw, 8rem) 0 0.3rem;
  color: rgba(241, 245, 247, 0.92);
  font-family: var(--font-head);
  font-size: clamp(4rem, 17vw, 15.5rem);
  font-weight: 500;
  letter-spacing: -0.095em;
  line-height: 0.72;
  text-align: center;
  white-space: nowrap;
}

.footer-copy {
  margin: 1.8rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(174, 181, 189, 0.56);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

/* Entrate progressive con fallback sempre visibile */
.reveal-target {
  opacity: 1;
  transform: none;
}

html.reveal-ready .reveal-target {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.reveal-ready .reveal-target.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Adattamento responsive */
@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: minmax(11rem, 1fr) auto;
  }

  .header-meta { display: none; }
  .nav-list a { padding-inline: 0.43rem; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-scene { justify-self: center; }
  .hero-content > * { max-width: 54rem; }
  .service-layout { grid-template-columns: 1fr; }
  .service-visual { position: relative; top: auto; min-height: 25rem; }
  .history-principles { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 2rem, 1240px); }
  .header-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 68px;
    gap: 0.75rem;
  }
  .logo-link img { width: 42px; height: 42px; }
  .brand-wordmark { font-size: 1.28rem; }
  .header-meta { display: none; }
  .nav-toggle { display: inline-block; padding: 0.55rem 0.85rem; font-size: 0.74rem; }
  .nav-list {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(9, 10, 13, 0.97);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.64);
  }
  .nav-list.is-open { display: flex; }
  .nav-list li + li { border: 0; }
  .nav-list a { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 0.9rem; text-align: left; font-size: 0.86rem; }
  .nav-list a::before { display: inline; min-width: 1.6rem; margin: 0; }
  .hero { min-height: auto; padding: 5rem 0 3.5rem; }
  .hero h1 { max-width: 10ch; font-size: clamp(3.5rem, 15vw, 6.5rem); }
  .hero-scene { height: 350px; min-height: 350px; }
  .hero-actions .button { width: 100%; text-align: center; }
  .demo-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .demo-card,
  .demo-card:nth-child(1),
  .demo-card:nth-child(2),
  .demo-card:nth-child(3),
  .demo-card:nth-child(4) { grid-column: 1 / -1; grid-row: auto; min-height: 17rem; }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .service-layout { gap: 2rem; }
}

@media (max-width: 560px) {
  .section { padding-block: 4.5rem; }
  .page-hero { min-height: 20rem; padding-block: 4rem 3rem; }
  .page-hero h1 { font-size: clamp(3.2rem, 14vw, 5rem); }
  .hero-scene { --logo-w: 218px; --tile: 44px; --mini-w: 116px; --phone-w: 50px; --phone-h: 94px; height: 310px; min-height: 310px; }
  .scene-optional { display: none; }
  .footer-contact-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer-contact-column { gap: 0.65rem; }
  .footer-signature { margin-top: 4rem; font-size: clamp(3.8rem, 16.5vw, 6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track,
  .service-visual-core,
  .service-orbit-one,
  .float,
  .logo-panel { animation: none !important; }
  html.reveal-ready .reveal-target,
  html.reveal-ready .reveal-target.is-in-view { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}


/* Allineamento del menu nella griglia della testata */
.header-inner > nav {
  justify-self: end;
}


.inline-phone-link {
  color: var(--white);
  text-decoration-color: rgba(226, 235, 241, 0.48);
  text-underline-offset: 0.25em;
}

.inline-phone-link:hover {
  text-decoration-color: var(--white);
}


/* Marchio aggiornato nel footer */
.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-brand-logo {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
}
