:root {
  --petrol: #07586a;
  --petrol-dark: #073f49;
  --teal: #0b8aa6;
  --yellow: #ffc400;
  --yellow-hover: #f2b800;
  --paper: #ffffff;
  --mist: #f3f3f3;
  --text: #163138;
  --muted: #6f6f6f;
  --red: #e23d3d;
  --green: #26c943;
  --line: #dde7e8;
  --shadow: 0 18px 45px rgba(7, 63, 73, 0.1);
  font-family: Inter, Manrope, "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Custom Scrollbar - Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) var(--mist);
}

/* Custom Scrollbar - Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--mist);
}

::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border-radius: 10px;
  border: 3px solid var(--mist);
  /* Crea un effetto padding attorno alla barra */
}

::-webkit-scrollbar-thumb:hover {
  background: var(--yellow-hover);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.preloading {
  overflow: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 196, 0, 0.85);
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 40px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(7, 63, 73, 0.08);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  color: var(--petrol);
  font-weight: 900;
  letter-spacing: 0;
  font-size: 1.45rem;
}

.logo small {
  display: block;
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 1rem;
  font-weight: 750;
  color: var(--muted);
}

.nav-links a:not(.btn):hover {
  color: var(--teal);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--petrol-dark);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 1.3rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 15px 24px;
  border-radius: 12px;
  border: 0;
  background: var(--yellow);
  color: var(--petrol-dark);
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(255, 196, 0, 0.24);
  cursor: pointer;
}

.btn:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
}

.btn.secondary {
  background: var(--paper);
  color: var(--petrol-dark);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn.secondary:hover {
  background: var(--mist);
}

.btn.dark {
  background: var(--petrol-dark);
  color: white;
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 126px;
  background: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  background: #f1f6f6;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.home-hero {
  padding-bottom: 176px;
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 168px;
  background: var(--mist);
  clip-path: polygon(0 58%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  align-items: end;
  gap: 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  color: var(--petrol);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.22rem;
}

h1 span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.55em;
  font-style: italic;
  font-weight: 500;
}

.lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero .lead {
  max-width: 640px;
  color: var(--petrol-dark);
  font-size: 1.03rem;
  font-style: italic;
  line-height: 1.22;
}

.signature {
  width: 156px;
  height: auto;
  margin: -4px 0 0 auto;
  object-fit: contain;
}

.hero-proof-row {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 22px;
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.18;
}

.hero-proof-row>img {
  width: 151px;
  height: auto;
}

.stars {
  width: 136px;
  height: auto;
  margin-bottom: 4px;
}

.hero-proof-row p {
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.hero-actions .microcopy {
  order: -1;
  flex-basis: 100%;
  color: var(--petrol-dark);
  font-weight: 900;
  font-size: 0.92rem;
}

.hero-portrait {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.hero-portrait img {
  width: min(100%, 535px);
  height: auto;
  object-fit: contain;
  transform: translateY(96px);
  filter: drop-shadow(0 24px 22px rgba(7, 63, 73, 0.08));
}

.hero-portrait.compact {
  min-height: 520px;
}

.hero-portrait.compact img {
  width: min(100%, 390px);
}

/* --- Animazione Sistema LIME --- */
.attraction-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attraction-core {
  position: relative;
  z-index: 5;
  width: 140px;
  height: 140px;
  background: var(--petrol-dark);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow:
    0 0 0 10px rgba(7, 88, 106, 0.05),
    0 0 40px rgba(11, 138, 166, 0.3);
  animation: pulse-core 4s infinite ease-in-out;
}

.attraction-core span {
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 0.1em;
}

.attraction-core strong {
  font-size: 1.8rem;
  color: var(--yellow);
  text-shadow: 0 0 15px rgba(255, 196, 0, 0.4);
}

.attraction-lines span {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--teal);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.attraction-lines span:nth-child(1) {
  width: 160px;
  height: 160px;
  animation: magnetic-wave 4s infinite 0s;
}

.attraction-lines span:nth-child(2) {
  width: 280px;
  height: 280px;
  animation: magnetic-wave 4s infinite 1s;
}

.attraction-lines span:nth-child(3) {
  width: 420px;
  height: 420px;
  animation: magnetic-wave 4s infinite 2s;
}

.attraction-lines span:nth-child(4) {
  width: 580px;
  height: 580px;
  animation: magnetic-wave 4s infinite 3s;
}

@keyframes magnetic-wave {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
  }

  20% {
    opacity: 0.15;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

.signal-card {
  position: absolute;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 6;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

.signal-card-1 {
  top: 15%;
  left: 10%;
  --sx: -100px;
  --sy: -100px;
  animation: attraction-flow 6s infinite 0s;
}

.signal-card-2 {
  top: 20%;
  right: 10%;
  --sx: 100px;
  --sy: -80px;
  animation: attraction-flow 6s infinite 1.5s;
}

.signal-card-3 {
  bottom: 20%;
  left: 15%;
  --sx: -80px;
  --sy: 120px;
  animation: attraction-flow 6s infinite 3s;
}

.signal-card-4 {
  bottom: 15%;
  right: 15%;
  --sx: 120px;
  --sy: 100px;
  animation: attraction-flow 6s infinite 4.5s;
}

@keyframes attraction-flow {
  0% {
    transform: translate(var(--sx), var(--sy)) scale(0.6);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  45% {
    transform: translate(0, 0) scale(1.1);
  }

  60% {
    transform: translate(0, 0) scale(1);
  }

  90% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(0, 0) scale(0.95);
    opacity: 0;
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(255, 196, 0, 0.3);
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--petrol-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1), opacity 0.5s ease;
}

#preloader.loaded {
  transform: translateY(-100%);
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  color: white;
}

.preloader-brand {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}

.p-emil {
  opacity: 0;
  animation: preloaderSlideRight 0.8s ease-out forwards 0.2s;
}

.p-ceron {
  color: var(--yellow);
  opacity: 0;
  animation: preloaderSlideLeft 0.8s ease-out forwards 0.2s;
}

.preloader-line {
  height: 2px;
  background: var(--yellow);
  width: 0;
  margin: 0 auto;
  animation: preloaderExpand 0.6s ease-in-out forwards 0.8s;
}

.preloader-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.45em;
  margin-top: 14px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  animation: preloaderFade 0.5s ease-out forwards 1.2s;
}

@keyframes preloaderSlideRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes preloaderSlideLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes preloaderExpand {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes preloaderFade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.attraction-caption {
  margin-top: 34px;
  padding: 24px;
  background: var(--mist);
  border-radius: 12px;
  border-left: 4px solid var(--yellow);
  font-size: 0.95rem;
  color: var(--text);
  max-width: 520px;
  box-shadow: 0 12px 32px rgba(7, 63, 73, 0.04);
}

.attraction-caption p {
  margin: 0 0 10px;
  color: var(--petrol-dark);
  line-height: 1.45;
  font-style: italic;
}

.attraction-caption strong {
  display: block;
  color: var(--petrol);
  font-size: 0.92rem;
}

.cut-hero {
  padding-bottom: 148px;
}

.cut-hero::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 132px;
  background: var(--mist);
  clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

@keyframes pulse-core {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(7, 88, 106, 0.05), 0 0 40px rgba(11, 138, 166, 0.2);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 20px rgba(7, 88, 106, 0.1), 0 0 60px rgba(11, 138, 166, 0.4);
  }
}

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

.proof {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--petrol-dark);
  font-weight: 850;
}

.avatar-stack {
  display: flex;
}

.avatar-stack span {
  width: 36px;
  height: 36px;
  margin-left: -8px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
}

.avatar-stack span:first-child {
  margin-left: 0;
  background: var(--petrol);
}

.avatar-stack span:last-child {
  background: var(--yellow);
  color: var(--petrol-dark);
}

.portrait-card {
  position: relative;
  min-height: 520px;
  border-radius: 8px;
  background: var(--petrol-dark);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  color: white;
}

.portrait-card::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 42px solid rgba(255, 196, 0, 0.18);
}

.portrait-card::before {
  content: "EC";
  position: absolute;
  inset: 32px 32px auto auto;
  width: 132px;
  height: 132px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.74);
  font-size: 2.5rem;
  font-weight: 900;
}

.portrait-card strong {
  position: relative;
  color: var(--yellow);
  font-size: 1.6rem;
  line-height: 1.1;
}

.portrait-card p {
  position: relative;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

section {
  padding: 92px 0;
}

.section-gray {
  position: relative;
  background: var(--mist);
}

.section-gray::before,
.section-gray::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  pointer-events: none;
}

.section-gray::before {
  top: -79px;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.section-gray::after {
  bottom: -79px;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.section-gray+section {
  padding-top: 150px;
}

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

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-dark .lead,
.section-dark p,
.section-dark li {
  color: rgba(255, 255, 255, 0.78);
}

.section-dark .card h3,
.section-dark .lime-card h3 {
  color: var(--petrol);
}

.section-dark .card p,
.section-dark .lime-card p,
.section-dark .lime-card li {
  color: var(--muted);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.2;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  background: white;
  border: 1px solid rgba(7, 88, 106, 0.1);
  border-radius: 12px;
  padding: 34px;
  box-shadow: 0 12px 32px rgba(7, 63, 73, 0.06);
}

.section-gray .card {
  min-height: 150px;
}

.section-gray .card h3 {
  color: var(--petrol-dark);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 0.98;
}

.card .num {
  display: block;
  color: var(--teal);
  font-size: 2.65rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 18px;
}

.card p {
  color: var(--muted);
  margin: 12px 0 0;
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.compare-box {
  border-radius: 12px;
  padding: 30px;
  background: #fff6f6;
  border: 1px solid rgba(226, 61, 61, 0.18);
}

.creator-section {
  padding-bottom: 128px;
}

.compare-box.good {
  background: #f5fff7;
  border-color: rgba(38, 201, 67, 0.2);
}

.check-list,
.x-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.x-list li {
  position: relative;
  padding-left: 30px;
  margin: 12px 0;
}

.check-list li::before,
.x-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
}

.check-list li::before {
  content: "✓";
  color: var(--green);
}

.x-list li::before {
  content: "×";
  color: var(--red);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}

.step b {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--petrol-dark);
  font-weight: 900;
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quote {
  font-size: 1.05rem;
  color: var(--text);
}

.result {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--petrol);
  font-weight: 900;
}

.pull-quote {
  margin: 42px auto;
  max-width: 860px;
  color: var(--petrol);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
}

.about-page .pull-quote {
  margin: 34px 0 0;
  padding: 24px 28px;
  background: white;
  border-radius: 12px;
  border-left: 5px solid var(--yellow);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--petrol);
  max-width: 640px;
  text-align: left;
  box-shadow: 0 12px 32px rgba(7, 63, 73, 0.05);
  font-weight: 800;
  line-height: 1.35;
  font-style: italic;
}

.lime-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.lime-card {
  min-height: 340px;
  padding: 28px;
  border-radius: 8px;
  background: white;
  color: var(--text);
  border-top: 6px solid var(--teal);
}

.lime-card .letter {
  display: block;
  color: var(--petrol);
  font-size: 4.8rem;
  line-height: 0.9;
  font-weight: 900;
  margin-bottom: 18px;
}

.lime-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.output {
  margin-top: 18px;
  color: var(--petrol);
  font-weight: 900;
}

.cta-band {
  padding: 74px 0;
  background: var(--petrol);
  color: white;
  text-align: center;
}

.cta-band h2 {
  color: white;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 58px 0 110px;
  background: #052f37;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.sticky-bar {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 min(8vw, 108px);
  border-radius: 0;
  background: #126c7c;
  color: white;
  box-shadow: 0 -14px 34px rgba(7, 63, 73, 0.16);
  font-size: 1.3rem;
  font-weight: 800;
}

.sticky-bar a:first-child {
  text-align: left;
  padding-left: 12px;
}

.sticky-bar a:last-child {
  text-align: right;
  padding-right: 12px;
}

.sticky-bar .btn {
  min-height: 70px;
  border-radius: 12px 12px 0 0;
  padding-inline: 44px;
  margin-top: -22px;
  align-self: end;
}

.sticky-bar a:first-child,
.sticky-bar a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sticky-bar a:last-child {
  justify-content: flex-end;
}

.sticky-bar i {
  width: 32px;
  flex: 0 0 auto;
  font-size: 1.35em;
  text-align: center;
  line-height: 1;
}

.section-nav {
  position: fixed;
  z-index: 55;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 9px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  mix-blend-mode: difference;
}

.section-nav a {
  position: relative;
  min-width: 104px;
  min-height: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  color: #f8a795;
  /* Inverso di #07586a: appare come Petrol su fondo bianco */
  font-size: 0.68rem;
  font-weight: 800;
  text-align: right;
  transition: color 180ms ease;
}

.section-nav a::after {
  content: "";
  width: 18px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(248, 167, 149, 0.5);
  transition: width 220ms ease, background-color 180ms ease, opacity 180ms ease;
}

.section-nav span {
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: all 220ms ease;
  pointer-events: none;
  color: #f8a795;
}

.section-nav a:hover span,
.section-nav a.is-active span {
  opacity: 1;
  transform: translateX(0);
}

.section-nav a:hover::after,
.section-nav a.is-active::after {
  width: 46px;
  background: #f8a795;
}

.minimal-header {
  border-bottom: 1px solid var(--line);
}

.application-page {
  background: #f7f9f9;
}

.application-shell {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 96px;
}

.application-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  margin: 24px 0;
}

.form-placeholder {
  margin-top: 34px;
  background: white;
  border: 2px dashed rgba(7, 88, 106, 0.28);
  border-radius: 8px;
  padding: 28px;
}

.field {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.field label {
  font-weight: 850;
  color: var(--petrol-dark);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
}

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

.legal-page main {
  width: min(850px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 120px;
}

/* --- ANIMAZIONI GLOBALI (Desktop & Mobile) --- */
.hero h1,
.hero .eyebrow,
.hero .lead,
.hero .hero-actions,
.hero .signature,
.hero .hero-proof-row,
.hero .hero-portrait,
.hero .attraction-visual,
.hero .pull-quote {
  animation: heroRise 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero .eyebrow {
  animation-delay: 0ms;
}

.hero h1 {
  animation-delay: 100ms;
}

.hero .lead {
  animation-delay: 200ms;
}

.hero .hero-portrait,
.hero .attraction-visual {
  animation-delay: 300ms;
}

.hero .signature,
.hero .hero-proof-row,
.hero .pull-quote {
  animation-delay: 400ms;
}

.hero .hero-actions {
  animation-delay: 500ms;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms cubic-bezier(.2, .8, .2, 1),
    transform 700ms cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-scale {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition:
    opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggering per liste e griglie (funziona anche su mobile in colonna singola) */
.grid-2>.reveal:nth-child(2),
.grid-3>.reveal:nth-child(2),
.grid-4>.reveal:nth-child(2),
.timeline>.reveal:nth-child(2),
.lime-grid>.reveal:nth-child(2),
.compare>.reveal:nth-child(2) {
  transition-delay: 150ms;
}

.grid-3>.reveal:nth-child(3),
.grid-4>.reveal:nth-child(3),
.timeline>.reveal:nth-child(3),
.lime-grid>.reveal:nth-child(3) {
  transition-delay: 300ms;
}

.grid-4>.reveal:nth-child(4),
.timeline>.reveal:nth-child(4),
.lime-grid>.reveal:nth-child(4) {
  transition-delay: 450ms;
}

.timeline>.reveal:nth-child(5) {
  transition-delay: 600ms;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 901px) {

  /* Recovery layer: ripristina layout specifici saltati dopo interventi esterni. */
  .home-hero {
    min-height: calc(100svh - 78px);
    padding-top: 38px;
    padding-bottom: 118px;
  }

  .home-hero .hero-grid {
    min-height: calc(100svh - 78px - 156px);
    align-items: center;
  }

  .home-hero .hero-grid>div:first-child {
    transform: translateY(-24px);
  }

  .home-hero .hero-portrait {
    min-height: 570px;
  }

  .home-hero .hero-portrait img {
    width: min(100%, 515px);
    transform: translateY(84px);
  }

  .lime-hero {
    padding-bottom: 148px;
  }

  .lime-hero .hero-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(380px, 0.92fr);
    align-items: center;
  }

  .lime-hero .attraction-visual {
    position: relative;
    min-height: 610px;
    height: auto;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background:
      linear-gradient(145deg, rgba(7, 88, 106, 0.08), rgba(255, 196, 0, 0.08)),
      #f4f7f7;
    border: 1px solid rgba(7, 88, 106, 0.12);
    box-shadow: 0 26px 58px rgba(7, 63, 73, 0.14);
    transform: none;
  }

  .lime-hero .attraction-visual::before {
    content: "";
    position: absolute;
    inset: 42px;
    border: 1px solid rgba(7, 88, 106, 0.13);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }

  .lime-hero .attraction-core {
    position: absolute;
    left: 50%;
    top: 46%;
    z-index: 5;
    width: 188px;
    height: 188px;
    margin-left: -94px;
    margin-top: -94px;
    transform: none;
  }

  .lime-hero .attraction-lines span {
    top: 46%;
    left: 50%;
  }

  .lime-hero .attraction-core strong {
    font-size: 2.9rem;
    line-height: 0.95;
  }

  .lime-hero .attraction-caption {
    margin-top: 40px;
  }

  .about-hero {
    min-height: auto;
    padding-top: 44px;
    padding-bottom: 118px;
  }

  .about-hero .hero-grid {
    min-height: 560px;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
    align-items: center;
  }

  .about-hero .pull-quote {
    margin: 30px 0 0;
    max-width: 680px;
    text-align: left;
  }

  .about-portrait {
    min-height: 560px;
  }

  .about-portrait img {
    width: min(110%, 550px);
    max-width: none;
    transform: translateY(60px);
  }

  .results-hero {
    text-align: center;
    padding-top: 100px;
    padding-bottom: 160px;
  }

  .reveal.is-visible.card:hover,
  .reveal.is-visible.step:hover,
  .reveal.is-visible.compare-box:hover,
  .reveal.is-visible.lime-card:hover,
  .reveal.is-visible.application-card:hover {
    transform: translateY(-4px);
  }

  .reveal-scale.is-visible.card:hover,
  .reveal-scale.is-visible.compare-box:hover,
  .reveal-scale.is-visible.lime-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
}

@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .nav {
    min-height: 68px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 110;
    transition: background 0.3s ease;
  }

  .logo {
    position: relative;
    z-index: 110;
    transition: color 0.3s ease;
  }

  body.nav-open .logo {
    color: white;
  }

  body.nav-open .logo small {
    color: rgba(255, 255, 255, 0.7);
  }

  body.nav-open .menu-toggle {
    background: rgba(255, 255, 255, 0.15);
  }

  .nav-links {
    position: fixed;
    inset: 0;
    height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    background: var(--petrol);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 100;
  }

  body.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 10px;
    color: white;
    font-size: 1.7rem;
    font-weight: 800;
  }

  .nav-links .btn {
    display: none;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .hero-grid>div:first-child {
    position: relative;
    z-index: 2;
    margin-top: 0;
  }

  .home-hero .hero-grid>div:first-child {
    margin-top: -80px;
    /* Overlap solo in Home per integrare la foto */
  }

  .hero-portrait,
  .attraction-visual {
    order: -1;
    position: relative;
    z-index: 1;
  }

  .hero {
    padding: 58px 0 76px;
    background: white;
  }

  .hero::after {
    display: none;
  }

  .home-hero {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 112px;
  }

  .home-hero::before {
    height: 118px;
    clip-path: polygon(0 45%, 100% 12%, 100% 100%, 0 100%);
  }

  .cut-hero {
    padding-bottom: 112px;
  }

  .cut-hero::before {
    height: 104px;
    clip-path: polygon(0 48%, 100% 14%, 100% 100%, 0 100%);
  }

  .split,
  .grid-2,
  .grid-3,
  .grid-4,
  .compare,
  .lime-grid {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    min-height: 360px;
  }

  .hero-portrait {
    min-height: 460px;
  }

  .hero-portrait img {
    width: min(100%, 360px);
    transform: none !important;
    margin: 0 auto;
    mask-image: linear-gradient(to bottom, black 65%, transparent 98%);
    -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 98%);
  }

  .home-hero .hero-grid {
    min-height: auto;
  }

  .home-hero .hero-grid>div:first-child {
    transform: none !important;
  }

  .home-hero .hero-portrait {
    min-height: 400px;
  }

  .home-hero .hero-portrait img {
    width: min(90%, 340px);
    transform: none !important;
  }

  .lime-hero .hero-grid,
  .about-hero .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-hero {
    padding-top: 42px;
    padding-bottom: 112px;
  }

  .about-portrait {
    min-height: 420px;
  }

  .about-portrait img {
    width: min(92%, 380px);
    transform: none !important;
  }

  .attraction-visual {
    height: 380px;
    transform: scale(0.85);
    /* Leggermente più piccola su mobile per non occupare tutto lo schermo */
  }

  .lime-hero .attraction-visual {
    min-height: 480px;
    transform: none;
    overflow: visible;
    width: 100%;
    background: transparent;
    border: none;
    display: block;
    box-shadow: none;
    margin-bottom: 40px;
    margin-top: 20px;
  }

  .lime-hero .attraction-visual::before {
    display: none;
  }

  .lime-hero .hero-grid>div:first-child,
  .about-hero .hero-grid>div:first-child {
    margin-top: -35px;
    position: relative;
    z-index: 15;
  }

  .lime-hero .attraction-core {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -65px;
    margin-top: -65px;
    width: 130px;
    height: 130px;
  }

  .lime-hero .attraction-lines span:nth-child(4) {
    display: none;
  }

  .lime-hero .attraction-lines span {
    top: 50%;
    left: 50%;
  }

  .lime-hero .signal-card {
    font-size: 0.75rem;
    padding: 8px 12px;
  }

  .lime-hero .attraction-core strong {
    font-size: 1.9rem;
  }

  .lime-hero .attraction-caption {
    margin: 32px auto 0;
    width: 100%;
    max-width: none;
    background: white;
    border: 1px solid var(--line);
    border-left: 4px solid var(--yellow);
    text-align: left;
  }

  .signature {
    margin: 10px auto 0;
  }

  .hero-proof-row {
    justify-content: center;
    text-align: left;
  }

  .hero-actions {
    justify-content: center;
  }

  section {
    padding: 68px 0;
  }

  .section-head {
    text-align: left;
    margin-left: 0;
  }

  .sticky-bar {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 8px 14px;
  }

  .sticky-bar a:first-child,
  .sticky-bar a:last-child {
    display: none;
  }

  .sticky-bar .btn {
    width: 100%;
    min-height: 58px;
    border-radius: 10px;
    margin-top: 0;
  }

  .section-nav {
    display: none;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 560px) {

  .container,
  .narrow,
  .application-shell {
    width: min(100% - 28px, 1120px);
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .proof {
    align-items: flex-start;
  }

  .card,
  .application-card,
  .form-placeholder {
    padding: 22px;
  }

  .step {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}