/* EOS Energies — modern dark UI, teal accents */
:root {
  --bg-deep: #050505;
  --bg-elevated: #0f1114;
  --bg-glass: rgba(18, 22, 28, 0.72);
  --text: #d8dde4;
  --text-muted: #9aa3b2;
  --text-heading: #f0f3f7;
  --accent: #0d9488;
  --accent-bright: #14b8a6;
  --accent-deep: #0f766e;
  --border: rgba(255, 255, 255, 0.08);
  --gradient-hero: linear-gradient(135deg, rgba(13, 148, 136, 0.35) 0%, rgba(5, 8, 12, 0.92) 55%, #050505 100%);
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --header-h: 76px;
  /* Header / footer light chrome */
  --chrome-bg: #ffffff;
  --chrome-text: #0f172a;
  --chrome-text-muted: #475569;
  --chrome-border: rgba(15, 23, 42, 0.1);
  --chrome-link: #0f766e;
  --chrome-link-hover: #0d9488;
  --chrome-hover-bg: rgba(13, 148, 136, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

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

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #5eead4;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
}

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

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

/* Scroll reveal — testi e blocchi entrano in dissolvenza */
.reveal-animate {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  filter: blur(6px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease;
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal-animate--hero {
  transform: translate3d(0, 24px, 0);
  filter: blur(4px);
}

/* Home: titoli e paragrafi — fade-in leggero (senza blur sul testo) */
.reveal-animate--text {
  transform: translate3d(0, 14px, 0);
  filter: none;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-animate.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.glass-card.reveal-animate,
.diff-card.reveal-animate,
.service-block.reveal-animate {
  transition-duration: 0.65s;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--chrome-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--chrome-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(13, 148, 136, 0.15);
}

.site-header a {
  color: var(--chrome-link);
}

.site-header a:hover {
  color: var(--chrome-link-hover);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 0.75rem;
}

.header-trailing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.brand {
  flex-shrink: 0;
  min-width: 0;
}

/* CTA in barra */
.header-cta {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

@media (max-width: 899px) {
  /* Mobile: più leggera, meno saturata del btn-primary pieno */
  .site-header .header-cta.btn-primary {
    background: rgba(13, 148, 136, 0.11);
    color: var(--chrome-link);
    border: 1px solid rgba(13, 148, 136, 0.28);
    box-shadow: none;
    font-weight: 600;
  }

  .site-header .header-cta.btn-primary:hover {
    background: rgba(13, 148, 136, 0.17);
    color: var(--chrome-link-hover);
    transform: none;
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.12);
  }

  .site-header .header-cta.btn-primary.is-active {
    background: rgba(13, 148, 136, 0.16);
    border-color: rgba(13, 148, 136, 0.38);
    color: var(--chrome-link-hover);
    border-radius: 10px;
        height: 44px;
  }
}

@media (min-width: 900px) {
  /* Solo mobile: CTA + hamburger; su desktop il menu orizzontale ha Contact */
  .header-trailing {
    display: none;
  }
}

.brand-logo {
  width: auto;
  height: clamp(82px, 12vw, 82px);
  object-fit: contain;
}

@media (min-width: 768px) {
  .brand-logo {
    height: 82px;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--chrome-border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--chrome-text);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100dvh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  background: var(--chrome-bg);
  padding: 0.65rem 1rem max(0.65rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-left: 1px solid var(--chrome-border);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.site-nav.is-open {
  transform: translateX(0);
}

@media (min-width: 900px) {
  .site-nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    max-height: none;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0;
    background: transparent;
    transform: none;
    overflow: visible;
    border: none;
    box-shadow: none;
  }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  flex: 1 1 auto;
  justify-content: flex-start;
  min-height: 0;
}

@media (min-width: 900px) {
  .nav-list {
    flex-direction: row;
    align-items: center;
    flex: none;
    justify-content: center;
    gap: 0.35rem;
  }
}

.nav-list a {
  display: block;
  padding: 0.42rem 0.85rem;
  color: var(--chrome-text);
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: 10px;
}

@media (min-width: 900px) {
  .nav-list a {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--chrome-link-hover);
  background: var(--chrome-hover-bg);
}

.nav-list .nav-cta {
  margin-top: 0.35rem;
  border: 1px solid rgba(13, 148, 136, 0.45);
  color: var(--chrome-link);
}

.nav-list .nav-cta:hover,
.nav-list .nav-cta.is-active {
  color: var(--chrome-link-hover);
  background: var(--chrome-hover-bg);
}

/* Contact già in header come pulsante primary */
@media (max-width: 899px) {
  .nav-list .nav-cta {
    display: none;
  }
}

@media (min-width: 900px) {
  .nav-list .nav-cta {
    margin-top: 0;
    margin-left: 0.5rem;
  }
}

/* Drawer mobile: CTA separatore + link legali */
.nav-drawer-extra {
  display: none;
}

@media (max-width: 899px) {
  /* La lista non deve espandersi in altezza: altrimenti i link legali finiscono in fondo dopo molto spazio vuoto */
  .site-nav .nav-list {
    flex: 0 0 auto;
  }

  .nav-drawer-extra {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--chrome-border);
    flex-shrink: 0;
  }

  .nav-drawer-cta {
    width: 100%;
    justify-content: center;
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(20, 184, 166, 0.22);
  }

  .nav-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    padding: 0.15rem 0 0.15rem;
  }

  .nav-legal a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--chrome-text);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .nav-legal a:hover {
    color: var(--chrome-link-hover);
  }

  .nav-legal-dot {
    color: var(--chrome-text);
    font-weight: 600;
    user-select: none;
  }
}

/* Main offset for fixed header */
main {
  padding-top: var(--header-h);
}

/* Hero (DS Mena–style: full viewport, video, overlay) */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap {
  background-color: var(--bg-deep);
}

.hero-video-wrap .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Static hero background (if used without video) */
.hero-bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  animation: hero-ken 28s ease-in-out infinite alternate;
}

@keyframes hero-ken {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero-video,
.hero-fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--gradient-hero);
}

/* Onda finale hero: sopra video + overlay, niente “buco” nero sotto al video */
.hero .eos-wave--hero {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin-top: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 4rem 1.25rem 5rem;
  max-width: 880px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.hero .tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: #a7f3d0;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.hero .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #04120f;
  box-shadow: 0 8px 32px rgba(20, 184, 166, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(20, 184, 166, 0.45);
  color: #021210;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-heading);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
}

/* Onde tra sezioni (curva morbida tipo “S”, richiamo al logo) */
.eos-wave {
  display: block;
  line-height: 0;
  margin: 0;
  padding: 0;
  margin-top: -1px;
}

.eos-wave svg {
  width: 100%;
  height: clamp(52px, 10vw, 96px);
  display: block;
}

/* Bagliore lungo la curva (stesso linguaggio di .btn-primary) */
.eos-wave-edge {
  filter: drop-shadow(0 0 4px rgba(20, 184, 166, 0.75)) drop-shadow(0 0 12px rgba(20, 184, 166, 0.45))
    drop-shadow(0 0 28px rgba(13, 148, 136, 0.3));
}

.eos-wave--elevated {
  color: var(--bg-elevated);
}

.eos-wave--deep {
  color: var(--bg-deep);
}

/* Fascia decorativa full-bleed (immagine fixed, senza contenuto) */
.section-parallax {
  --parallax-bg: none;
  --eos-wave-h: clamp(52px, 10vw, 96px);
  position: relative;
  min-height: min(42vh, 520px);
  margin: 0;
  padding: 0;
  border: 0;
  background-color: var(--bg-deep);
  background-image: var(--parallax-bg);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.section-parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* In alto resta leggero: la curva dell’onda si appoggia sulla foto visibile, non su un “nero” da overlay */
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.06) 0%,
    rgba(5, 5, 5, 0.1) 18%,
    rgba(5, 5, 5, 0.16) 40%,
    rgba(5, 5, 5, 0.32) 100%
  );
  pointer-events: none;
}

/* Onde sopra l’immagine (no striscia nera ai bordi) */
.section-parallax .eos-wave--parallax-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  transform: scaleY(-1);
  transform-origin: 50% 0;
  display: none;
}

.section-parallax .eos-wave--parallax-top svg {
  height: var(--eos-wave-h);
}

.section-parallax .eos-wave--parallax-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}

.section-parallax .eos-wave--parallax-bottom svg {
  height: var(--eos-wave-h);
}

@media (max-width: 900px) {
  .section-parallax {
    min-height: min(34vh, 400px);
    background-attachment: scroll;
  }
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-header.center {
  text-align: center;
  margin-inline: auto;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  color: var(--text-heading);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  text-align: justify;
}

/* Intro block with optional image */
.split-intro {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split-intro {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.split-intro-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.split-intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Service / icon boxes */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.glass-card:hover {
  border-color: rgba(20, 184, 166, 0.35);
  transform: translateY(-4px);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--accent-bright);
}

.glass-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 0.65rem;
}

.glass-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Value proposition two columns */
.value-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .value-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--text);
  font-size: 1.2rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
}

/* Who we work with */
.highlight-panel {
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.12), rgba(15, 23, 42, 0.5));
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
}

.highlight-panel p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  font-size: 1.4em;
    text-align: justify;
}

/* CTA band */
.cta-band {
  --eos-wave-h: clamp(52px, 10vw, 96px);
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0;
  text-align: center;
  overflow: hidden;
}

.cta-band-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/assets/img/cta-band.jpeg") center/cover no-repeat;
}

.cta-band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(5, 8, 12, 0.92), rgba(13, 148, 136, 0.45));
}

/* Onda sopra l’immagine CTA (niente striscia nera tra sezione precedente e foto) */
.cta-band .eos-wave--cta-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  transform: scaleY(-1);
  transform-origin: 50% 0;
}

.cta-band .eos-wave--cta-top svg {
  height: var(--eos-wave-h);
}

.cta-band .container {
  position: relative;
  z-index: 3;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--text-heading);
  margin: 0 0 1rem;
}

.cta-band p {
  margin: 0 auto 1.75rem;
  max-width: 520px;
  color: var(--text-muted);
  text-align: justify;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: clamp(4rem, 10vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
  min-height: 70vh;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.75) 0%, var(--bg-deep) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 0.75rem;
}

.page-hero .page-lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* Services / sectors large blocks */
.service-blocks {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-block {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(15, 17, 20, 0.6);
  overflow: hidden;
}

@media (min-width: 800px) {
  .service-block {
    grid-template-columns: 280px 1fr;
    align-items: stretch;
  }
}

.service-block-media {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 180px;
}

.service-block-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-block h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: var(--text-heading);
}

.service-block p {
  margin: 0;
  color: var(--text-muted);
  text-align: justify;
}

/* Why EOS grid */
.diff-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .diff-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.diff-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.diff-card:hover {
  border-color: rgba(20, 184, 166, 0.3);
}

.diff-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  color: var(--accent-bright);
}

.diff-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: justify;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.contact-details p {
  margin: 0 0 1rem;
  color: var(--text);
  text-align: justify;
}

.contact-details a {
  font-weight: 600;
}

.contact-detail-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-detail-gap {
  margin-top: 1.25rem;
}

.contact-address {
  margin: 0 0 1rem;
  font-style: normal;
  color: var(--text);
  line-height: 1.65;
  text-align: left;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-heading);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(20, 184, 166, 0.55);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.form-status.success {
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.4);
  color: #a7f3d0;
}

.form-status.error {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.form-recaptcha-note {
  margin: -0.25rem 0 1.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.form-recaptcha-note a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer — layout scuro, bordo luminoso animato */
.site-footer--next {
  position: relative;
  margin-top: 0;
  padding: 0;
  background: linear-gradient(165deg, #0a0e12 0%, #050608 42%, #020304 100%);
  color: #cbd5e1;
  overflow: hidden;
}

.site-footer--next::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(20, 184, 166, 0.15) 20%,
    rgba(45, 212, 191, 0.55) 50%,
    rgba(20, 184, 166, 0.15) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: footer-shimmer 10s ease-in-out infinite;
}

@keyframes footer-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
    opacity: 0.85;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

.footer-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 148, 136, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(15, 118, 110, 0.12), transparent 50%);
  opacity: 0.9;
}

.site-footer--next a {
  color: #5eead4;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer--next a:hover {
  color: #99f6e4;
}

.footer-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(2.75rem, 6vw, 4.25rem) 0 clamp(2rem, 4vw, 2.75rem);
}

@media (min-width: 900px) {
  .footer-shell {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr);
    align-items: start;
    gap: 3rem;
  }
}

.footer-brand-block {
  max-width: 380px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  opacity: 0.95;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-logo-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-logo {
  height: 44px;
  width: auto;
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f1f5f9;
  margin: 0 0 0.75rem;
}

.footer-lead {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #94a3b8;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: rgba(13, 148, 136, 0.12);
  color: #5eead4 !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.footer-cta:hover {
  background: rgba(13, 148, 136, 0.22);
  border-color: rgba(45, 212, 191, 0.65);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.2);
  transform: translateY(-2px);
  color: #ccfbf1 !important;
}

.footer-cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.footer-cta:hover .footer-cta-arrow {
  transform: translateX(4px);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1000px) {
  .footer-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 1.1rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.55rem;
}

.footer-list a {
  font-size: 0.92rem;
  color: #cbd5e1 !important;
}

.footer-list a:hover {
  color: #5eead4 !important;
}

.footer-col--contact .footer-contact-line {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer-col--contact .footer-contact-line a {
  font-weight: 600;
}

.footer-detail-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.footer-address {
  margin: 0 0 1rem;
  font-style: normal;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.footer-note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.footer-domain-badge a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #94a3b8 !important;
}

.footer-domain-badge a:hover {
  border-color: rgba(45, 212, 191, 0.4);
  color: #5eead4 !important;
}

.footer-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
}

.copyright {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

.footer-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-status {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
}

.footer-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14b8a6;
  box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55);
  animation: footer-pulse 2.2s ease-out infinite;
}

@keyframes footer-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.45);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(20, 184, 166, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
  }
}

.footer-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.footer-to-top:hover {
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(13, 148, 136, 0.12);
  transform: translateY(-3px);
}

.footer-to-top:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}

/* Legal pages (Privacy, Cookie policy) */
.legal-page {
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.legal-content {
  max-width: 720px;
  margin-inline: auto;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  color: var(--text-heading);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-heading);
  margin: 2rem 0 0.75rem;
}

.legal-content h3 {
  font-size: 1.05rem;
  color: #e2e8f0;
  margin: 1.25rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.legal-content a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Maintenance page (503) */
.maintenance-body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg-deep);
  color: var(--text);
}

.maintenance-shell {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.maintenance-hero {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.maintenance-hero .hero-video-wrap {
  position: absolute;
  inset: 0;
  min-height: 100dvh;
}

.maintenance-hero .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.maintenance-overlay.maintenance-overlay {
  background: linear-gradient(
    180deg,
    rgba(5, 8, 12, 0.55) 0%,
    rgba(5, 8, 12, 0.75) 45%,
    rgba(5, 5, 5, 0.92) 100%
  );
}

.maintenance-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem 6rem;
  max-width: 520px;
  margin-inline: auto;
}

.maintenance-brand {
  margin: 0 0 1.25rem;
}

.maintenance-logo {
  width: auto;
  height: clamp(200px, 14vw, 200px);
  object-fit: contain;
}

.maintenance-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.maintenance-lead {
  margin: 0 0 2rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 36ch;
}

.maintenance-login {
  width: 100%;
  max-width: 360px;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(18, 22, 28, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.maintenance-login-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 1rem;
}

.maintenance-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.maintenance-login-error {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: #fca5a5;
}

.maintenance-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.maintenance-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-heading);
}

.maintenance-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-heading);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.maintenance-input:focus {
  outline: 2px solid rgba(20, 184, 166, 0.45);
  outline-offset: 1px;
}

.maintenance-submit {
  margin-top: 0.35rem;
  width: 100%;
  justify-content: center;
}

.maintenance-footer {
  position: relative;
  z-index: 2;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, transparent, rgba(5, 5, 5, 0.85));
}

.maintenance-footer-inner {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.maintenance-footer-inner a {
  color: var(--accent-bright);
  font-weight: 500;
}

.maintenance-footer-inner a:hover {
  color: #5eead4;
}

.maintenance-footer-sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-animate {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .site-footer--next::before {
    animation: none;
  }

  .footer-pulse {
    animation: none;
    box-shadow: none;
  }

  .hero-bg {
    animation: none;
    inset: 0;
  }

  .section-parallax {
    background-attachment: scroll;
  }

  .glass-card:hover,
  .btn-primary:hover,
  .btn-outline:hover {
    transform: none;
  }
}
