:root {
  --teal-900: #141f1b;
  --teal-800: #283e37;
  --teal-700: #3c5d52;
  --teal-600: #507c6d;
  --teal-500: #639c89;
  --teal-100: #e0ebe7;
  --teal-50: #eff5f3;

  --olive-500: #7daa55;
  --gold-500: #e9c616;
  --gold-400: #eed144;
  --sandy-500: #f0780f;

  --ink: #17211d;
  --paper: #fbfaf7;

  --font-sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--gold-400);
  color: var(--teal-900);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(251, 250, 247, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav__logo img {
  height: 70px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

.nav__link:hover { opacity: 0.6; }

.nav__cta {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

.nav__cta:hover {
  opacity: 0.6;
}

@media (min-width: 768px) {
  .nav { padding: 28px 56px; }
}

/* ---------- Hero ---------- */

.hero-track {
  position: relative;
  height: 220vh;
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 64px;
  padding: 120px 24px 96px;
  color: var(--ink);
  background: var(--paper);
}

.hero__icon-link {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  display: block;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: 50% 50%;
  z-index: 0;
  will-change: transform;
}

.hero__icon {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__icon circle {
  transition: fill 0.2s ease;
}

.hero__icon-link:hover .hero__icon circle {
  fill: var(--teal-600);
}

@media (min-width: 768px) {
  .hero__icon-link {
    width: 440px;
    height: 440px;
  }
}

.hero__cover {
  position: absolute;
  inset: 0;
  background: var(--paper);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__reveal-preview {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  pointer-events: none;
}

.hero__reveal-preview .about__eyebrow,
.hero__reveal-preview .about__title {
  margin: 0 0 16px;
  max-width: 40ch;
}

.hero__reveal-preview .about__eyebrow {
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}

.hero__reveal-preview .about__title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  text-transform: uppercase;
}

.hero__content {
  position: relative;
  z-index: 1;
  will-change: transform, opacity;
}

.hero__title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero__corner {
  position: relative;
  z-index: 1;
  max-width: 280px;
  will-change: transform, opacity;
}

.hero__corner-scroll {
  display: block;
  margin-bottom: 28px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero__corner-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.hero__corner-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--teal-800);
}

@media (min-width: 768px) {
  .hero {
    justify-content: flex-end;
    padding: 160px 56px 64px;
  }

  .hero__corner {
    position: absolute;
    right: 56px;
    bottom: 56px;
    text-align: right;
  }

  .hero__title { max-width: 16ch; }
}

/* ---------- About ---------- */

.about {
  position: relative;
  z-index: 1;
  background: var(--paper);
  padding: 120px 24px;
  scroll-margin-top: 130px;
  opacity: 0;
  transform: translateY(70px);
  will-change: transform, opacity;
}

.about__inner {
  max-width: 1040px;
  margin: 0 auto;
}

.about__eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.about__title {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--teal-900);
}

.about__text {
  margin: 0 0 64px;
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--teal-800);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.about__card {
  padding-top: 24px;
  border-top: 2px solid var(--teal-100);
}

.about__card-index {
  display: block;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sandy-500);
}

.about__card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-900);
}

.about__card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--teal-700);
}

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

/* ---------- Settori ---------- */

.sectors {
  position: relative;
  z-index: 1;
  background: var(--teal-50);
  padding: 100px 24px;
  scroll-margin-top: 130px;
}

.sectors__inner {
  max-width: 1040px;
  margin: 0 auto;
}

.sectors__eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.sectors__title {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--teal-900);
}

.sectors__text {
  margin: 0;
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--teal-800);
}

.sectors__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}

.sectors__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--teal-600);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sectors__card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--teal-900);
}

.sectors__card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--teal-700);
}

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

@media (min-width: 1024px) {
  .sectors__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 24px 32px;
}

.footer__top {
  max-width: 1040px;
  margin: 0 auto 48px;
}

.footer__logo {
  height: 32px;
  filter: invert(1);
  margin-bottom: 16px;
}

.footer__tagline {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  max-width: 32ch;
}

.footer__cols {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__col h4 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-100);
}

.footer__col a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.footer__col a:hover { color: #fff; }

.footer__cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer__cta {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid #fff;
  background: #fff;
  color: var(--teal-900) !important;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer__cta:hover {
  background: transparent;
  color: #fff !important;
}

.footer__cta--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff !important;
}

.footer__cta--ghost:hover {
  background: #fff;
  color: var(--teal-900) !important;
  border-color: #fff;
}

.footer__bottom {
  max-width: 1040px;
  margin: 24px auto 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

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

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px;
  background: var(--teal-900);
  color: var(--paper);
  box-shadow: 0 -8px 24px rgba(20, 31, 27, 0.25);
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(251, 250, 247, 0.85);
}

.cookie-banner__link {
  color: var(--paper);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
}

.cookie-banner__btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-banner__btn--primary {
  background: #fff;
  color: var(--teal-900);
}

.cookie-banner__btn--primary:hover {
  background: transparent;
  color: #fff;
}

.cookie-banner__btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cookie-banner__btn--ghost:hover {
  background: #fff;
  color: var(--teal-900);
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 56px;
  }
}
